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