Magento – Why the app/code folder is empty

magento-2.0magento-2.0.7magento2

While installing Magento 2 (the recent stable version is Magento 2.0.7), I used different ways except archive/download.

The first used is Git clone:

$ git clone -b 2.0 git@github.com:magento/magento2.git

Then, another one is Composer

$ composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition magento2

Then, the rest of the installation procedures are the same. And both ways could setup Magento 2 properly.

Whey use "git clone…" created the app/code/Magento, but compare with "composer create-project…" the app/code is empty?

Is "app/code/Magento" does not exist won't affect any other procedures?
Such as installing 3rd party module or self created module in "app/code/Custom_module"?

Best Answer

When you create the project with composer all modules placed in vendor directory.

Pay attention then you should use git clone only in case you have to contribute to Magento project.

Empty app/code should not affect any processes.

Related Topic