Skip to content

Commit

Permalink
Merge branch '2.8' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 9, 2015
2 parents 7d922b9 + 63dd246 commit bf48c59
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ will cause authentication to fail. You might want to return ``null`` instead
to just skip the authentication, so Symfony can fallback to another authentication
method, if any.

.. caution::

In case you return ``null`` from your ``createToken()`` method, be sure to enable
``anonymous`` in you firewall. This way you'll be able to get an ``AnonymousToken``.

2. supportsToken
~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion cookbook/service_container/shared.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ in your service definition:
.. code-block:: php
// app/config/services.php
use Symfony\Component\DependencyInjection\Definition;
// app/config/services.php
$definition = new Definition('...');
$definition->setShared(false);
Expand Down
8 changes: 7 additions & 1 deletion reference/constraints/Valid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ an object and all sub-objects associated with it.
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+---------------------------------------------------------------------+
| Options | - `traverse`_ |
| | - `deep`_ |
| | - `deep`_ (deprecated as of 2.5) |
| | - `payload`_ |
+----------------+---------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Valid` |
Expand Down Expand Up @@ -271,6 +271,12 @@ set to ``true``.
deep
~~~~

.. caution::

The ``deep`` option was deprecated in Symfony 2.5 and will be removed
in Symfony 3.0. When traversing arrays, nested arrays are always traversed.
When traversing nested objects, their traversal strategy is used.

**type**: ``boolean`` **default**: ``false``

If this constraint is applied to a property that holds an array of objects,
Expand Down

0 comments on commit bf48c59

Please sign in to comment.