for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Routing\RouteCollectionBuilder;
class TestKernel extends \Symfony\Component\HttpKernel\Kernel
{
use \Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
Symfony\Bundle\Framework...Kernel\MicroKernelTrait
$instanceof
TestKernel
public function registerBundles()
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Bdf\QueueBundle\BdfQueueBundle(),
];
}
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
$c
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function configureContainer(/** @scrutinizer ignore-unused */ ContainerBuilder $c, LoaderInterface $loader)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$loader->load(__DIR__.'/Fixtures/conf.yaml');
// PHP 7.1
protected function configureRoutes(RouteCollectionBuilder $routes)
$routes
protected function configureRoutes(/** @scrutinizer ignore-unused */ RouteCollectionBuilder $routes)