magento-hackathon / magento-composer-installer

Composer installer for Magento modules
210 stars 154 forks source link

vfsStream is not copied to lib directory #128

Closed razbakov closed 9 years ago

razbakov commented 9 years ago

magento is installed to webroot sub directory, here is my composer.json:

{  
    "repositories": [
        {"type": "composer", "url": "http://packages.firegento.com"}
    ],
    "require": {
        "mikey179/vfsStream": "1.4.*",
        "firegento/psr0autoloader": "*",
        "magento-hackathon/magento-composer-installer":"*"
    },
    "extra": {
        "magento-root-dir": "webroot",
        "auto-append-gitignore": true,
        "magento-deploystrategy": "copy",
        "magento-force": true
    }
}

I need to run this command to fix it:

cp -rf vendor/mikey179/vfsStream/src webroot/lib/vfsStream/ 

vfsStream is used for https://github.com/EcomDev/EcomDev_PHPUnit

Flyingmana commented 9 years ago

did you use the https://github.com/magento-hackathon/Magento-PSR-0-Autoloader modul and configured it for the composer autoloader?

I will let this issue open, till a feature is finished to automate this scenario

razbakov commented 9 years ago

i added:

        "firegento/psr0autoloader": "*",
        "magento-hackathon/magento-composer-installer":"*"

doesn't work...

razbakov commented 9 years ago

do you mean also to add local.xml configuration?

Flyingmana commented 9 years ago

the psr0autoloader does not load composer autoloading by default

razbakov commented 9 years ago

ok, it works, but the error is not solved, as i understand this folder should be in lib folder, right?

Flyingmana commented 9 years ago

there is nothing defined yet for non magento modules.

Per default in any case "no", but I planed a feature to whitelist packages for copy into lib. Anyway, simple adding them there would not bring much, as they dont follow the magento autoloading schema

Flyingmana commented 9 years ago

would be solved by #93