igorw / composer-yaml

Tool to convert from composer.yml to composer.json.
MIT License
56 stars 15 forks source link

Make composer-yaml compatible with packagist installations #4

Closed vworldat closed 12 years ago

vworldat commented 12 years ago

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.

igorw commented 12 years ago

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.

vworldat commented 12 years ago

Agreed, but at the moment it helps a lot! Thx