Skip to content

update composer autoloader section #12099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,13 @@ deployment process too):

.. code-block:: terminal

$ composer dump-autoload --optimize --no-dev --classmap-authoritative
$ composer dump-autoload --no-dev --classmap-authoritative

* ``--optimize`` dumps every PSR-0 and PSR-4 compatible class used in your
application;
* ``--no-dev`` excludes the classes that are only needed in the development
environment (e.g. tests);
* ``--classmap-authoritative`` prevents Composer from scanning the file
system for classes that are not found in the class map.
environment (i.e. ``require-dev`` dependencies and ``autoload-dev`` rules);
* ``--classmap-authoritative`` creates a class map for PSR-0 and PSR-4 compatible classes
used in your application and prevents Composer from scanning the file system for
classes that are not found in the class map. (see: `Composer's autoloader optimization`_).

Learn more
----------
Expand Down