The top-level filesystem structure

The following list depicts the root Magento filesystem structure:

  • .htaccess
  • .htaccess.sample
  • .php_cs
  • .travis.yml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • CONTRIBUTOR_LICENSE_AGREEMENT.html
  • COPYING.txt
  • Gruntfile.js
  • LICENSE.txt
  • LICENSE_AFL.txt
  • app
  • bin
  • composer.json
  • composer.lock
  • dev
  • index.php
  • lib
  • nginx.conf.sample
  • package.json
  • php.ini.sample
  • phpserver
  • pub
  • setup
  • update
  • var
  • vendor

The app/etc/di.xml file is one of the most important files that we might often look into during development. It contains various class mappings or preferences for individual interfaces.

The var/magento/language-* directories is where the registered languages reside. Though each module can declare its own translations under app/code/{VendorName}/{ModuleName}/i18n/, Magento will ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.