Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec3aaca

Browse files
committed
Merge branch '2.4'
2 parentsa4ef0e1 +dbaef06 commitec3aaca

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-
//inanother controllerfor another request
675-
$foo = $session->get('foo');
674+
//get the attribute set byanother controllerin another request
675+
$foobar = $session->get('foobar');
676676

677-
// use a default value if thekey doesn't exist
677+
// use a default value if theattribute 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-
whenspecifing a group sequence. When using ``Default``, you get an
981-
infinite recursion (as the ``Default``groups references the group
980+
whenspecifying 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)

[8]ページ先頭

©2009-2025 Movatter.jp