<?php
namespace EasyCorp\Bundle\EasyAdminBundle;
use EasyCorp\Bundle\EasyAdminBundle\DependencyInjection\CreateControllerRegistriesPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @author Maxime Steinhausser <[email protected]>
*/
class EasyAdminBundle extends Bundle
{
public const VERSION = '4.18.0';
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new CreateControllerRegistriesPass());
}
public function getPath(): string
{
$reflected = new \ReflectionObject($this);
return \dirname($reflected->getFileName(), 2);
}
}