Skip to content

Controller - Forwarding chapter contains deprecated code #2910

Closed
@hacfi

Description

@hacfi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions