move error handling to resource owner

also add required dependency symfony/yaml