-
Notifications
You must be signed in to change notification settings - Fork 0
/
UniteCMSAdminBundle.php
22 lines (18 loc) · 887 Bytes
/
UniteCMSAdminBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace UniteCMS\AdminBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use UniteCMS\AdminBundle\AdminView\AdminFieldConfiguratorInterface;
use UniteCMS\AdminBundle\AdminView\AdminViewTypeInterface;
use UniteCMS\AdminBundle\DependencyInjection\AdminViewTypeCompilerPass;
use UniteCMS\CoreBundle\UniteCMSCoreBundle;
class UniteCMSAdminBundle extends Bundle
{
const UNITE_VERSION = UniteCMSCoreBundle::UNITE_VERSION;
public function build(ContainerBuilder $container)
{
$container->registerForAutoconfiguration(AdminViewTypeInterface::class)->addTag('unite.admin_view_type');
$container->registerForAutoconfiguration(AdminFieldConfiguratorInterface::class)->addTag('unite.admin_view_field_configurator');
$container->addCompilerPass(new AdminViewTypeCompilerPass());
}
}