@@ -506,13 +506,13 @@ You'll learn more about each of these directories in later chapters.
506
506
507
507
.. sidebar :: Autoloading
508
508
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 .
513
513
514
514
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
516
516
to determine its location and automatically includes the file on your
517
517
behalf the instant you need a class.
518
518
@@ -527,11 +527,6 @@ You'll learn more about each of these directories in later chapters.
527
527
Path:
528
528
src/Acme/HelloBundle/Controller/HelloController.php
529
529
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
-
535
530
The Source (``src ``) Directory
536
531
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
537
532
@@ -599,11 +594,6 @@ method of the ``AppKernel`` class::
599
594
With the ``registerBundles() `` method, you have total control over which bundles
600
595
are used by your application (including the core Symfony bundles).
601
596
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
-
607
597
Creating a Bundle
608
598
~~~~~~~~~~~~~~~~~
609
599
0 commit comments