-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
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);
// ...
}