<?php
namespace MLDev\AccountBundle;
use MLDev\AccountBundle\DependencyInjection\Compiler\ResolveTargetEntitiesCompilerPass;
use MLDev\AccountBundle\DependencyInjection\MLDevAccountExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MLDevAccountBundle extends Bundle
{
public function getPath(): string
{
return dirname(__DIR__);
}
public function getContainerExtension(): MLDevAccountExtension
{
return new MLDevAccountExtension();
}
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ResolveTargetEntitiesCompilerPass());
}
}