for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sylius\Bundle\CoreBundle\DependencyInjection\Compiler;
use Sylius\Bundle\CoreBundle\Symfony\DefaultAuthenticationSuccessHandler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @see DefaultAuthenticationSuccessHandler
*
* @internal
*/
final class SymfonyCompatibilityPass implements CompilerPassInterface
{
* {@inheritdoc}
public function process(ContainerBuilder $container)
if (!$container->has('security.authentication.success_handler')) {
return;
}
$definition = $container->findDefinition('security.authentication.success_handler');
$definition->setClass(DefaultAuthenticationSuccessHandler::class);