Skip to content

Commit fc3e6b9

Browse files
committed
Changing text which refers to the old app/autoload.php to mention "the Composer" way.
1 parent 5986e2b commit fc3e6b9

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

book/page_creation.rst

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,13 @@ You'll learn more about each of these directories in later chapters.
506506

507507
.. sidebar:: Autoloading
508508

509-
When Symfony is loading, a special file - ``app/autoload.php`` - is included.
510-
This file is responsible for configuring the autoloader, which will autoload
511-
your application files from the ``src/`` directory and third-party libraries
512-
from the ``vendor/`` directory.
509+
When Symfony is loading, a special file - ``vendor/autoload.php`` - is
510+
included. This file is created by Composer and will autoload all
511+
application files living in the `src/` folder as well as all
512+
third-party libraries mentioned in the ``composer.json`` file.
513513

514514
Because of the autoloader, you never need to worry about using ``include``
515-
or ``require`` statements. Instead, Symfony2 uses the namespace of a class
515+
or ``require`` statements. Instead, Composer uses the namespace of a class
516516
to determine its location and automatically includes the file on your
517517
behalf the instant you need a class.
518518

@@ -527,11 +527,6 @@ You'll learn more about each of these directories in later chapters.
527527
Path:
528528
src/Acme/HelloBundle/Controller/HelloController.php
529529
530-
Typically, the only time you'll need to worry about the ``app/autoload.php``
531-
file is when you're including a new third-party library in the ``vendor/``
532-
directory. For more information on autoloading, see
533-
:doc:`How to autoload Classes</components/class_loader>`.
534-
535530
The Source (``src``) Directory
536531
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
537532

@@ -599,11 +594,6 @@ method of the ``AppKernel`` class::
599594
With the ``registerBundles()`` method, you have total control over which bundles
600595
are used by your application (including the core Symfony bundles).
601596

602-
.. tip::
603-
604-
A bundle can live *anywhere* as long as it can be autoloaded (via the
605-
autoloader configured at ``app/autoload.php``).
606-
607597
Creating a Bundle
608598
~~~~~~~~~~~~~~~~~
609599

0 commit comments

Comments
 (0)