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

Skip to content

[HttpKernel] Missing Finder component #13810

Closed
@RomanShumkov

Description

@RomanShumkov

HttpKernel component depends on finder component, which is not listed in require section of composer.json.

As a result when running console application based on FrameworkBundle and HttpKernel component there is following fatal error:

Fatal error: Class 'Symfony\Component\Finder\Finder' not found in /usr/src/censored/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php on line 177

    public function registerCommands(Application $application)
    {
        // ...
        $finder = new Finder();
        $finder->files()->name('*Command.php')->in($dir);
        // ...
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions