Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a note about the need to require Composer's autoload file #5385

Merged
merged 1 commit into from
Jun 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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