1

Downloaded the M2 from magentocommerce with sample data. I have custom module which i developed locally on M2-rc 2.0. My question is that now how can i install module and where i place the custom module as there is no code folder in app directory and all the magento modules are in vendor folder. Also i dont want to create a repo for my module. Also i want to put my module in vendor folder

0

1 Answer 1

2

Just create the app/code/YourNameSpace/ModuleName folder yourself. Make sure, that your composer.json in the project root contains the line

    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ]

in the autoload section (see https://github.com/magento/magento2-community-edition/blob/master/composer.json#L42) which is responsible for loading modules which are not installed via composer.

2
  • thanks for help. Also if i want to install module using composer then where i place the files? Nov 18, 2015 at 11:05
  • Then you need to make a own repository for that module, add your module to the composer.json and call composer.phar update
    – Alex
    Nov 18, 2015 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.