Skip to content

Commit 12760c4

Browse files
authored
update composer autoloader section
the `--optimize` option is implied by `--classmap-authoritative` and hence surplus show documentation link (it was already in rst)
1 parent 40505d0 commit 12760c4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

performance.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,13 @@ deployment process too):
125125

126126
.. code-block:: terminal
127127
128-
$ composer dump-autoload --optimize --no-dev --classmap-authoritative
128+
$ composer dump-autoload --no-dev --classmap-authoritative
129129
130-
* ``--optimize`` dumps every PSR-0 and PSR-4 compatible class used in your
131-
application;
132130
* ``--no-dev`` excludes the classes that are only needed in the development
133-
environment (e.g. tests);
134-
* ``--classmap-authoritative`` prevents Composer from scanning the file
135-
system for classes that are not found in the class map.
131+
environment (i.e. ``require-dev`` dependancies and ``autoload-dev`` rules);
132+
* ``--classmap-authoritative`` creates a class map for PSR-0 and PSR-4 compatible classes
133+
used in your application and prevents Composer from scanning the file system for
134+
classes that are not found in the class map. (see: `Composer's autoloader optimization`_)
136135

137136
Learn more
138137
----------

0 commit comments

Comments
 (0)