Skip to content

Commit

Permalink
Added a note about the need to require Composer's autoload file
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 11, 2015
1 parent 5c0f8fb commit 7f1ec8a
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 7f1ec8a

Please sign in to comment.