Skip to content

Commit 2250f60

Browse files
committed
Reverting changes which remove mentioning of the app/autoload.php
1 parent fd7a3f4 commit 2250f60

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

book/page_creation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,10 @@ method of the ``AppKernel`` class::
594594
With the ``registerBundles()`` method, you have total control over which bundles
595595
are used by your application (including the core Symfony bundles).
596596

597+
.. tip::
598+
599+
A bundle can live *anywhere* as long as it can be autoloaded (via the
600+
autoloader configured at ``app/autoload.php``).
597601
Creating a Bundle
598602
~~~~~~~~~~~~~~~~~
599603

book/performance.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Use Composer's Class Map Functionality
4646
--------------------------------------
4747

4848
By default, the Symfony2 standard edition uses Composer's autoloader
49-
in the `vendor/autoload.php` file. This autoloader is easy to use, as it will
49+
in the `autoload.php`_ file. This autoloader is easy to use, as it will
5050
automatically find any new classes that you've placed in the registered
5151
directories.
5252

@@ -138,4 +138,5 @@ is no longer a reason to use a bootstrap file.
138138

139139
.. _`byte code caches`: http://en.wikipedia.org/wiki/List_of_PHP_accelerators
140140
.. _`APC`: http://php.net/manual/en/book.apc.php
141+
.. _`autoload.php`: https://github.com/symfony/symfony-standard/blob/master/app/autoload.php
141142
.. _`bootstrap file`: https://github.com/sensio/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php

cookbook/debugging.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ below::
4646
// ...
4747

4848
// require_once __DIR__.'/../app/bootstrap.php.cache';
49+
require_once __DIR__.'/../app/autoload.php';
4950
require_once __DIR__.'/../app/AppKernel.php';
5051

5152
use Symfony\Component\HttpFoundation\Request;

cookbook/form/form_collections.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,9 @@ great, your user can't actually add any new tags yet.
263263
This directive limits recursion to 100 calls which may not be enough for
264264
rendering the form in the template if you render the whole form at
265265
once (e.g ``form_widget(form)``). To fix this you can set this directive
266-
to a higher value (either via a PHP ini file or via :phpfunction:`ini_set`)
267-
or render each form field by hand using ``form_row``.
266+
to a higher value (either via a PHP ini file or via :phpfunction:`ini_set`,
267+
for example in ``app/autoload.php``) or render each form field by hand
268+
using ``form_row``.
268269

269270
.. _cookbook-form-collections-new-prototype:
270271

quick_tour/the_architecture.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ This class must implement two methods:
5959
(more on this later).
6060

6161
Autoloading is handled automatically via `Composer`_, which means that you
62-
can use any PHP classes without doing anything at all! All dependencies
62+
can use any PHP classes without doing anything at all! If you need more flexibility,
63+
you can extend the autoloader in the ``app/autoload.php`` file. All dependencies
6364
are stored under the ``vendor/`` directory, but this is just a convention.
6465
You can store them wherever you want, globally on your server or locally
6566
in your projects.

0 commit comments

Comments
 (0)