Skip to content

Commit

Permalink
Merge branch '2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jun 20, 2015
2 parents 41d1733 + 0fe1050 commit 2d430dc
Show file tree
Hide file tree
Showing 31 changed files with 240 additions and 12 deletions.
12 changes: 6 additions & 6 deletions book/security.rst
Expand Up @@ -128,9 +128,9 @@ A) Configuring how your Users will Authenticate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The main job of a firewall is to configure *how* your users will authenticate.
Will they use a login form? Http Basic? An API token? All of the above?
Will they use a login form? HTTP basic authentication? An API token? All of the above?

Let's start with Http Basic (the old-school pop-up) and work up from there.
Let's start with HTTP basic authentication (the old-school prompt) and work up from there.
To activate this, add the ``http_basic`` key under your firewall:

.. configuration-block::
Expand Down Expand Up @@ -265,7 +265,7 @@ user to be logged in to access this URL:
You'll learn more about this ``ROLE_ADMIN`` thing and denying access
later in the :ref:`security-authorization` section.

Great! Now, if you go to ``/admin``, you'll see the HTTP Basic popup:
Great! Now, if you go to ``/admin``, you'll see the HTTP basic auth prompt:

.. image:: /images/book/security_http_basic_popup.png
:align: center
Expand Down Expand Up @@ -376,7 +376,7 @@ probably only need one. If you *do* have multiple, you can configure which
Try to login using username ``admin`` and password ``kitten``. You should
see an error!

No encoder has been configured for account "Symfony\Component\Security\Core\User\User"
No encoder has been configured for account "Symfony\\Component\\Security\\Core\\User\\User"

To fix this, add an ``encoders`` key:

Expand Down Expand Up @@ -598,8 +598,8 @@ before inserting them into the database? Don't worry, see
D) Configuration Done!
~~~~~~~~~~~~~~~~~~~~~~

Congratulations! You now have a working authentication system that uses Http
Basic and loads users right from the ``security.yml`` file.
Congratulations! You now have a working authentication system that uses HTTP
basic auth and loads users right from the ``security.yml`` file.

Your next steps depend on your setup:

Expand Down
2 changes: 2 additions & 0 deletions components/class_loader/introduction.rst
Expand Up @@ -41,5 +41,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
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
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
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/introduction.rst
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
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
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
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/introduction.rst
Expand Up @@ -19,6 +19,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
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 @@ -302,7 +304,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
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
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
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
Expand Up @@ -17,6 +17,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

Notes on Previous Versions
--------------------------

Expand Down
2 changes: 2 additions & 0 deletions components/process.rst
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
Expand Up @@ -16,6 +16,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
@@ -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
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
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
4 changes: 3 additions & 1 deletion components/serializer.rst
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 Expand Up @@ -185,7 +187,7 @@ like the following::

use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
// For annotations
usr Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationReader;
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
// For XML
// use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader;
Expand Down
2 changes: 2 additions & 0 deletions components/stopwatch.rst
Expand Up @@ -15,6 +15,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
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
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
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
4 changes: 2 additions & 2 deletions components/yaml/yaml_format.rst
Expand Up @@ -223,7 +223,7 @@ YAML uses indentation with one or more spaces to describe nested collections:
PHP: 5.2
Propel: 1.3
The following YAML is equivalent to the following PHP code:
The above YAML is equivalent to the following PHP code:

.. code-block:: php
Expand All @@ -240,7 +240,7 @@ The following YAML is equivalent to the following PHP code:
There is one important thing you need to remember when using indentation in a
YAML file: *Indentation must be done with one or more spaces, but never with
tabulations*.
tabulators*.

You can nest sequences and mappings as you like:

Expand Down
2 changes: 1 addition & 1 deletion cookbook/bundles/installation.rst
Expand Up @@ -73,7 +73,7 @@ The only thing you need to do now is register the bundle in ``AppKernel``::

In a few rare cases, you may want a bundle to be *only* enabled in the development
:doc:`environment </cookbook/configuration/environments>`. For example,
the DoctrineFixturesBundle helps load dummy data - something you probably
the DoctrineFixturesBundle helps to load dummy data - something you probably
only want to do while developing. To only load this bundle in the ``dev``
and ``test`` environments, register the bundle in this way::

Expand Down
1 change: 1 addition & 0 deletions cookbook/controller/index.rst
Expand Up @@ -6,3 +6,4 @@ Controller

error_pages
service
upload_file

0 comments on commit 2d430dc

Please sign in to comment.