Closed
Description
The Controller - Forwarding chapter gives a code example which is deprecated since 2.3:
$httpKernel = $this->container->get('http_kernel');
$response = $httpKernel->forward(
'AcmeHelloBundle:Hello:fancy',
array(
'name' => $name,
'color' => 'green',
)
);
Symfony no longer uses the extended FrameworkBundle HttpKernel class which added the forward method. See:
HttpKernel deprecated notice
Changelog - 2. bulletpoint
I don’t know if you want to update the code example or just remove it.