Skip to content

Commit 0f6142b

Browse files
committed
updated doc
1 parent 47c336a commit 0f6142b

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

guides/bundles/best_practices.rst

+3-8
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ A bundle is also a PHP namespace, composed of several segments:
2424
bundles;
2525
* The **bundle name**.
2626

27-
.. caution::
28-
29-
The vendor namespace and the category namespaces are only possible as of
30-
Symfony2 PR3.
31-
3227
The bundle name must follow these simple rules:
3328

3429
* Use only alphanumeric characters and underscores;
@@ -169,9 +164,9 @@ instead.
169164

170165
.. note::
171166

172-
If you have a look at :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller`
173-
methods, you will see that they are only nice shortcuts to ease the
174-
learning curve.
167+
If you have a look at
168+
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` methods,
169+
you will see that they are only nice shortcuts to ease the learning curve.
175170

176171
Templates
177172
---------

guides/internals/kernel.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for handling client requests. Its main goal is to "convert"
1212
All Symfony2 Kernels implement
1313
:class:`Symfony\\Component\\HttpKernel\\HttpKernelInterface`::
1414

15-
function handle(Request $request = null, $type = self::MASTER_REQUEST, $raw = false);
15+
function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
1616

1717
.. index::
1818
single: Internals; Controller Resolver
@@ -134,7 +134,7 @@ the type of the request. For instance, if a listener must only be active for
134134
master requests, add the following code at the beginning of your listener
135135
method::
136136

137-
if (HttpKernelInterface::MASTER_REQUEST !== $event->getParameter('request_type')) {
137+
if (HttpKernelInterface::MASTER_REQUEST !== $event->get('request_type')) {
138138
// return immediately
139139
// if the event is a filter, return the filtered value instead
140140
return;
@@ -208,11 +208,11 @@ view sub-system.
208208

209209
``FrameworkBundle`` registers several listeners:
210210

211-
* :class:`Symfony\\Component\\HttpKernel\\Profiler\\ProfilerListener`: collects
212-
data for the current request;
211+
* :class:`Symfony\\Component\\HttpKernel\\Profiler\\ProfilerListener`:
212+
collects data for the current request;
213213

214-
* :class:`Symfony\\Bundle\\WebProfilerBundle\\WebDebugToolbarListener`: injects
215-
the Web Debug Toolbar;
214+
* :class:`Symfony\\Bundle\\WebProfilerBundle\\WebDebugToolbarListener`:
215+
injects the Web Debug Toolbar;
216216

217217
* :class:`Symfony\\Component\\HttpKernel\\ResponseListener`: fixes the
218218
Response ``Content-Type``;

0 commit comments

Comments
 (0)