@@ -220,8 +220,8 @@ and is one of the constructor arguments to ``HttpKernel``.
220220 :align: center
221221
222222Your 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:
225225:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ControllerResolver `.
226226This implementation is explained more in the sidebar below::
227227
@@ -232,30 +232,15 @@ This implementation is explained more in the sidebar below::
232232 interface ControllerResolverInterface
233233 {
234234 public function getController(Request $request);
235-
236- public function getArguments(Request $request, $controller);
237235 }
238236
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.
249237
250238Internally, the ``HttpKernel::handle() `` method first calls
251239:method: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ControllerResolverInterface::getController `
252240on the controller resolver. This method is passed the ``Request `` and is responsible
253241for somehow determining and returning a PHP callable (the controller) based
254242on the request's information.
255243
256- The second method, :method: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentResolverInterface::getArguments `,
257- will be called after another event - ``kernel.controller `` - is dispatched.
258-
259244.. sidebar :: Resolving the Controller in the Symfony Framework
260245
261246 The Symfony Framework uses the built-in
0 commit comments