Skip to content

Commit ec3aaca

Browse files
committed
Merge branch '2.4'
2 parents a4ef0e1 + dbaef06 commit ec3aaca

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

book/controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,10 @@ from any controller::
671671
// store an attribute for reuse during a later user request
672672
$session->set('foo', 'bar');
673673

674-
// in another controller for another request
675-
$foo = $session->get('foo');
674+
// get the attribute set by another controller in another request
675+
$foobar = $session->get('foobar');
676676

677-
// use a default value if the key doesn't exist
677+
// use a default value if the attribute doesn't exist
678678
$filters = $session->get('filters', array());
679679
}
680680

book/routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,9 @@ method::
13161316
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
13171317
// http://www.example.com/blog/my-blog-post
13181318

1319-
From a template, it looks like this:
1319+
From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
1320+
rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
1321+
to ``generateUrl()``:
13201322

13211323
.. configuration-block::
13221324

book/service_container.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,13 @@ By default only public services are shown, but you can also view private service
11671167
11681168
$ php app/console container:debug --show-private
11691169
1170+
.. note::
1171+
1172+
If a private service is only used as an argument to just *one* other service,
1173+
it won't be displayed by the ``container:debug`` command, even when using
1174+
the ``--show-private`` option. See :ref:`Inline Private Services <inlined-private-services>`
1175+
for more details.
1176+
11701177
You can get more detailed information about a particular service by specifying
11711178
its id:
11721179

book/testing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ of your bundle::
8989
directory, put the test in the ``Tests/Utility/`` directory.
9090

9191
Just like in your real application - autoloading is automatically enabled
92-
via the ``bootstrap.php.cache`` file (as configured by default in the ``phpunit.xml.dist``
93-
file).
92+
via the ``bootstrap.php.cache`` file (as configured by default in the
93+
``app/phpunit.xml.dist`` file).
9494

9595
Running tests for a given file or directory is also very easy:
9696

@@ -789,12 +789,12 @@ machine only.
789789

790790
.. tip::
791791

792-
Store the ``phpunit.xml.dist`` file in your code repository and ignore the
793-
``phpunit.xml`` file.
792+
Store the ``app/phpunit.xml.dist`` file in your code repository and ignore
793+
the ``app/phpunit.xml`` file.
794794

795795
By default, only the tests from your own custom bundles stored in the standard
796796
directories ``src/*/*Bundle/Tests`` or ``src/*/Bundle/*Bundle/Tests`` are run
797-
by the ``phpunit`` command, as configured in the ``phpunit.xml.dist`` file:
797+
by the ``phpunit`` command, as configured in the ``app/phpunit.xml.dist`` file:
798798

799799
.. code-block:: xml
800800

book/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,8 @@ that group are valid, the second group, ``Strict``, will be validated.
977977
constraints that do not belong to any group.
978978

979979
This means that you have to use the ``{ClassName}`` (e.g. ``User``) group
980-
when specifing a group sequence. When using ``Default``, you get an
981-
infinite recursion (as the ``Default`` groups references the group
980+
when specifying a group sequence. When using ``Default``, you get an
981+
infinite recursion (as the ``Default`` group references the group
982982
sequence, which will contain the ``Default`` group which references the
983983
same group sequence, ...).
984984

components/dependency_injection/advanced.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ However, there are use-cases when you don't want a service to be public. This
1818
is common when a service is only defined because it could be used as an
1919
argument for another service.
2020

21+
.. _inlined-private-services:
22+
2123
.. note::
2224

2325
If you use a private service as an argument to only one other service,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy