for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrainExe\Core\Annotations\Builder;
use BrainExe\Annotations\Builder\ServiceDefinition;
use BrainExe\Core\DependencyInjection\CompilerPass\MiddlewareCompilerPass;
use Symfony\Component\DependencyInjection\Definition;
class Middleware extends ServiceDefinition
{
/**
* {@inheritdoc}
*/
public function setupDefinition(Definition $definition, string $serviceId)
$serviceId
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$definition->addTag(MiddlewareCompilerPass::TAG);
$definition->setPublic(false);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.