Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit b793ae5

Browse files
committed
Drop documentation for deprecated tag
1 parent 51cd755 commit b793ae5

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

bundles/core/dependency_injection_tags.rst

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,6 @@
44
Dependency Injection Tags
55
-------------------------
66

7-
cmf_request_aware
8-
~~~~~~~~~~~~~~~~~
9-
10-
.. caution::
11-
12-
This tag has been deprecated in CoreBundle 1.1 and will be removed
13-
in CoreBundle 1.2. Since Symfony 2.3, you can profit from the fact
14-
that the request is a `synchronized service`_.
15-
16-
When working with the CMF in Symfony 2.2 and you have services that need the
17-
request (e.g. for the publishing workflow or current menu item voters), you can
18-
tag services with ``cmf_request_aware`` to have a kernel listener inject the
19-
request. Any class used in such a tagged service must have the ``setRequest``
20-
method or you will get a fatal error::
21-
22-
use Symfony\Component\HttpFoundation\Request;
23-
24-
class MyClass
25-
{
26-
private $request;
27-
28-
public function setRequest(Request $request)
29-
{
30-
$this->request = $request;
31-
}
32-
}
33-
347
cmf_published_voter
358
~~~~~~~~~~~~~~~~~~~
369

0 commit comments

Comments
 (0)