When installed using igorw/composer-yaml, the autoloading paths are wrong. I included a cheap fix that checks for a "parallel" vendor directory first (assuming the file was just copied to the project bin folder) and then for the structure found when installed through composer (vendor/igorw/composer-yaml).
It's not much, but now the user can actually install composer-yaml through packagist and use it directly.
I would strongly recommend against doing that, because it binds you 2.1.* versions of symfony/console and symfony/yaml. That said, I'm not against merging this PR.
When installed using igorw/composer-yaml, the autoloading paths are wrong. I included a cheap fix that checks for a "parallel"
vendor
directory first (assuming the file was just copied to the projectbin
folder) and then for the structure found when installed through composer (vendor/igorw/composer-yaml
).It's not much, but now the user can actually install composer-yaml through packagist and use it directly.