@@ -220,8 +220,8 @@ and is one of the constructor arguments to ``HttpKernel``.
220
220
:align: center
221
221
222
222
Your job is to create a class that implements the interface and fill in its
223
- two methods : ``getController() `` and `` getArguments() `` . In fact, one default
224
- implementation already exists, which you can use directly or learn from:
223
+ method : ``getController() ``. In fact, one default implementation already
224
+ exists, which you can use directly or learn from:
225
225
:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ControllerResolver `.
226
226
This implementation is explained more in the sidebar below::
227
227
@@ -232,30 +232,15 @@ This implementation is explained more in the sidebar below::
232
232
interface ControllerResolverInterface
233
233
{
234
234
public function getController(Request $request);
235
-
236
- public function getArguments(Request $request, $controller);
237
235
}
238
236
239
- .. caution ::
240
-
241
- The ``getArguments() `` method in the
242
- :class: `Symfony\\ Component\\ Httpkernel\\ Controller\\ ControllerResolver ` and
243
- respective interface
244
- :class: `Symfony\\ Component\\ Httpkernel\\ Controller\\ ControllerResolverInterface `
245
- are deprecated as of 3.1 and will be removed in 4.0. You can use the
246
- :class: `Symfony\\ Component\\ Httpkernel\\ Controller\\ ArgumentResolver ` which
247
- uses the :class: `Symfony\\ Component\\ Httpkernel\\ Controller\\ ArgumentResolverInterface `
248
- instead.
249
237
250
238
Internally, the ``HttpKernel::handle() `` method first calls
251
239
:method: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ControllerResolverInterface::getController `
252
240
on the controller resolver. This method is passed the ``Request `` and is responsible
253
241
for somehow determining and returning a PHP callable (the controller) based
254
242
on the request's information.
255
243
256
- The second method, :method: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolverInterface::getArguments `,
257
- will be called after another event - ``kernel.controller `` - is dispatched.
258
-
259
244
.. sidebar :: Resolving the Controller in the Symfony Framework
260
245
261
246
The Symfony Framework uses the built-in
0 commit comments