Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing import in WebProfilerBundle's RouterController #18651

Closed
@emirb

Description

@emirb

The problem

Clean install of Symfony 2.8 throws ClassNotFoundException on Profiler's Router tab due to missing import.

Error message

Fatal error: Class 'Symfony\Bundle\WebProfilerBundle\Controller\Request' not found

Location: vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php:86

This has been fixed in symfony/web-profiler-bundle@ba91532 but the fix isn't available yet in the clean Symfony installation.

Steps to reproduce

Download Symfony installer:
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony

Create new project using 2.8 LTS version:
$ /usr/local/bin/symfony new my_project 2.8

Change your curent directory to my_project:
$ cd my_project

Run PHP built-in web-server:
$ php app/console server:run

Using your browser, go to localhost:8000.
Click on the profiler link in the bottom right, and then click to Routing in the left sidebar.
An exception will be thrown.

Environment

OS: Ubuntu 14.04
PHP version: 5.6.20
Symfony: 2.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions