Skip to content

Commit 1226b20

Browse files
committed
feature #5385 Added a note about the need to require Composer's autoload file (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Added a note about the need to require Composer's autoload file | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - This PR tries to finish #4409. I don't know if I applied correctly the ideas proposed by @weaverryan and @wouterj in that PR. Commits ------- 7f1ec8a Added a note about the need to require Composer's autoload file
2 parents b492f17 + 7f1ec8a commit 1226b20

24 files changed

+50
-1
lines changed

components/class_loader/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ You can install the component in 2 different ways:
3636
on `Packagist`_);
3737
* Use the official Git repository (https://github.com/symfony/ClassLoader).
3838

39+
.. include:: /components/require_autoload.rst.inc
40+
3941
.. _`autoloading mechanism`: http://php.net/manual/en/language.oop5.autoload.php
4042
.. _Packagist: https://packagist.org/packages/symfony/class-loader

components/config/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can install the component in 2 different ways:
1717
* :doc:`Install it via Composer </components/using_components>` (``symfony/config`` on `Packagist`_);
1818
* Use the official Git repository (https://github.com/symfony/Config).
1919

20+
.. include:: /components/require_autoload.rst.inc
21+
2022
Sections
2123
--------
2224

components/console/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in 2 different ways:
2020
* :doc:`Install it via Composer </components/using_components>` (``symfony/console`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/Console).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Creating a basic Command
2426
------------------------
2527

components/css_selector.rst

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can install the component in 2 different ways:
1515
* :doc:`Install it via Composer </components/using_components>` (``symfony/css-selector`` on `Packagist`_);
1616
* Use the official Git repository (https://github.com/symfony/CssSelector).
1717

18+
.. include:: /components/require_autoload.rst.inc
19+
1820
Usage
1921
-----
2022

components/debug.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in many different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/debug`` on `Packagist`_);
2020
* Use the official Git repository (https://github.com/symfony/Debug).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Usage
2325
-----
2426

components/dependency_injection/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/dependency-injection`` on `Packagist`_);
2020
* Use the official Git repository (https://github.com/symfony/DependencyInjection).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Basic Usage
2325
-----------
2426

components/dom_crawler.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in 2 different ways:
2020
* :doc:`Install it via Composer </components/using_components>` (``symfony/dom-crawler`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/DomCrawler).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Usage
2426
-----
2527

components/event_dispatcher/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ You can install the component in 2 different ways:
5656
* :doc:`Install it via Composer </components/using_components>` (``symfony/event-dispatcher`` on `Packagist`_);
5757
* Use the official Git repository (https://github.com/symfony/EventDispatcher).
5858

59+
.. include:: /components/require_autoload.rst.inc
60+
5961
Usage
6062
-----
6163

components/filesystem.rst

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ You can install the component in 2 different ways:
1818
* :doc:`Install it via Composer </components/using_components>` (``symfony/filesystem`` on `Packagist`_);
1919
* Use the official Git repository (https://github.com/symfony/Filesystem).
2020

21+
.. include:: /components/require_autoload.rst.inc
22+
2123
Usage
2224
-----
2325

components/finder.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/finder`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Finder).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

@@ -308,7 +310,7 @@ The contents of returned files can be read with
308310

309311
foreach ($finder as $file) {
310312
$contents = $file->getContents();
311-
313+
312314
// ...
313315
}
314316

components/form/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ You can install the component in 2 different ways:
2222
* :doc:`Install it via Composer </components/using_components>` (``symfony/form`` on `Packagist`_);
2323
* Use the official Git repository (https://github.com/symfony/Form).
2424

25+
.. include:: /components/require_autoload.rst.inc
26+
2527
Configuration
2628
-------------
2729

components/http_foundation/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ You can install the component in 2 different ways:
2424
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-foundation`` on `Packagist`_);
2525
* Use the official Git repository (https://github.com/symfony/HttpFoundation).
2626

27+
.. include:: /components/require_autoload.rst.inc
28+
2729
.. _component-http-foundation-request:
2830

2931
Request

components/http_kernel/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-kernel`` on Packagist_);
2020
* Use the official Git repository (https://github.com/symfony/HttpKernel).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
The Workflow of a Request
2325
-------------------------
2426

components/options_resolver.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/options-resolver`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/OptionsResolver).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

components/process.rst

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can install the component in 2 different ways:
1515
* :doc:`Install it via Composer </components/using_components>` (``symfony/process`` on `Packagist`_);
1616
* Use the official Git repository (https://github.com/symfony/Process).
1717

18+
.. include:: /components/require_autoload.rst.inc
19+
1820
Usage
1921
-----
2022

components/property_access/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in two different ways:
2020
* :doc:`Install it via Composer</components/using_components>` (``symfony/property-access`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/PropertyAccess).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Usage
2426
-----
2527

components/require_autoload.rst.inc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Then, require the ``vendor/autoload.php`` file to enable the autoloading mechanism
2+
provided by Composer. Otherwise, your application won't be able to find the classes
3+
of this Symfony component.

components/routing/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/routing`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Routing).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Usage
2022
-----
2123

components/security/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can install the component in 2 different ways:
1919
* :doc:`Install it via Composer </components/using_components>` (``symfony/security`` on Packagist_);
2020
* Use the official Git repository (https://github.com/symfony/Security).
2121

22+
.. include:: /components/require_autoload.rst.inc
23+
2224
Sections
2325
--------
2426

components/serializer.rst

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ You can install the component in 2 different ways:
3333
* :doc:`Install it via Composer </components/using_components>` (``symfony/serializer`` on `Packagist`_);
3434
* Use the official Git repository (https://github.com/symfony/Serializer).
3535

36+
.. include:: /components/require_autoload.rst.inc
37+
3638
Usage
3739
-----
3840

components/stopwatch.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can install the component in two different ways:
2020
* :doc:`Install it via Composer</components/using_components>` (``symfony/stopwatch`` on `Packagist`_);
2121
* Use the official Git repository (https://github.com/symfony/Stopwatch).
2222

23+
.. include:: /components/require_autoload.rst.inc
24+
2325
Usage
2426
-----
2527

components/templating/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ You can install the component in 2 different ways:
2121
* :doc:`Install it via Composer </components/using_components>` (``symfony/templating`` on `Packagist`_);
2222
* Use the official Git repository (https://github.com/symfony/Templating).
2323

24+
.. include:: /components/require_autoload.rst.inc
25+
2426
Usage
2527
-----
2628

components/translation/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You can install the component in 2 different ways:
1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/translation`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Translation).
1818

19+
.. include:: /components/require_autoload.rst.inc
20+
1921
Constructing the Translator
2022
---------------------------
2123

components/yaml/introduction.rst

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ You can install the component in 2 different ways:
3434
* :doc:`Install it via Composer </components/using_components>` (``symfony/yaml`` on `Packagist`_);
3535
* Use the official Git repository (https://github.com/symfony/Yaml).
3636

37+
.. include:: /components/require_autoload.rst.inc
38+
3739
Why?
3840
----
3941

0 commit comments

Comments
 (0)