<?php
namespace App\VPAutoBundle;
use App\Security\LiveApiKeyFactory;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class VPAutoBundle extends Bundle
{
/**
* Build bundle method - Will setup the security factory.
*
* @param $container ContainerBuilder Inject the container
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
$extension = $container->getExtension('security');
$extension->addSecurityListenerFactory(new LiveApiKeyFactory());
}
/**
* Get Parent method.
*/
public function getParent()
{
return 'FOSUserBundle';
}
}