Skip to content

Commit

Permalink
feature #5385 Added a note about the need to require Composer's autol…
Browse files Browse the repository at this point in the history
…oad 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
  • Loading branch information
weaverryan committed Jun 19, 2015
2 parents b492f17 + 7f1ec8a commit 1226b20
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/class_loader/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ You can install the component in 2 different ways:
on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/ClassLoader).

.. include:: /components/require_autoload.rst.inc

.. _`autoloading mechanism`: http://php.net/manual/en/language.oop5.autoload.php
.. _Packagist: https://packagist.org/packages/symfony/class-loader
2 changes: 2 additions & 0 deletions components/config/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/config`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Config).

.. include:: /components/require_autoload.rst.inc

Sections
--------

Expand Down
2 changes: 2 additions & 0 deletions components/console/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/console`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Console).

.. include:: /components/require_autoload.rst.inc

Creating a basic Command
------------------------

Expand Down
2 changes: 2 additions & 0 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/css-selector`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/CssSelector).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ You can install the component in many different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/debug`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Debug).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/dependency_injection/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/dependency-injection`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/DependencyInjection).

.. include:: /components/require_autoload.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/dom-crawler`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/DomCrawler).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/event_dispatcher/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/event-dispatcher`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/EventDispatcher).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/filesystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/filesystem`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Filesystem).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
4 changes: 3 additions & 1 deletion components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/finder`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Finder).

.. include:: /components/require_autoload.rst.inc

Usage
-----

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

foreach ($finder as $file) {
$contents = $file->getContents();

// ...
}

Expand Down
2 changes: 2 additions & 0 deletions components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/form`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Form).

.. include:: /components/require_autoload.rst.inc

Configuration
-------------

Expand Down
2 changes: 2 additions & 0 deletions components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-foundation`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/HttpFoundation).

.. include:: /components/require_autoload.rst.inc

.. _component-http-foundation-request:

Request
Expand Down
2 changes: 2 additions & 0 deletions components/http_kernel/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/http-kernel`` on Packagist_);
* Use the official Git repository (https://github.com/symfony/HttpKernel).

.. include:: /components/require_autoload.rst.inc

The Workflow of a Request
-------------------------

Expand Down
2 changes: 2 additions & 0 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/options-resolver`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/OptionsResolver).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/process`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Process).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ You can install the component in two different ways:
* :doc:`Install it via Composer</components/using_components>` (``symfony/property-access`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/PropertyAccess).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
3 changes: 3 additions & 0 deletions components/require_autoload.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Then, require the ``vendor/autoload.php`` file to enable the autoloading mechanism
provided by Composer. Otherwise, your application won't be able to find the classes
of this Symfony component.
2 changes: 2 additions & 0 deletions components/routing/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/routing`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Routing).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/security/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/security`` on Packagist_);
* Use the official Git repository (https://github.com/symfony/Security).

.. include:: /components/require_autoload.rst.inc

Sections
--------

Expand Down
2 changes: 2 additions & 0 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/serializer`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Serializer).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/stopwatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ You can install the component in two different ways:
* :doc:`Install it via Composer</components/using_components>` (``symfony/stopwatch`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Stopwatch).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/templating/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/templating`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Templating).

.. include:: /components/require_autoload.rst.inc

Usage
-----

Expand Down
2 changes: 2 additions & 0 deletions components/translation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/translation`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Translation).

.. include:: /components/require_autoload.rst.inc

Constructing the Translator
---------------------------

Expand Down
2 changes: 2 additions & 0 deletions components/yaml/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ You can install the component in 2 different ways:
* :doc:`Install it via Composer </components/using_components>` (``symfony/yaml`` on `Packagist`_);
* Use the official Git repository (https://github.com/symfony/Yaml).

.. include:: /components/require_autoload.rst.inc

Why?
----

Expand Down

0 comments on commit 1226b20

Please sign in to comment.