<?php
namespace App;
use App\DependencyInjection\Security\Factory\OAuthFactory;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
public function build(ContainerBuilder $container): void
{
parent::build($container);
$extension = $container->getExtension('security');
$extension->addSecurityListenerFactory(new OAuthFactory());
}
}