first commit
This commit is contained in:
48
bundles/KupShop/AdminBundle/AdminBundle.php
Normal file
48
bundles/KupShop/AdminBundle/AdminBundle.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace KupShop\AdminBundle;
|
||||
|
||||
use KupShop\AdminBundle\Admin\Actions\IAction;
|
||||
use KupShop\AdminBundle\Admin\WindowTab;
|
||||
use KupShop\AdminBundle\AdminListMassEdit\IListMassEdit;
|
||||
use KupShop\AdminBundle\AdminRegister\IAdminRegisterDynamic;
|
||||
use KupShop\AdminBundle\AdminRegister\IAdminRegisterStatic;
|
||||
use KupShop\AdminBundle\DependencyInjection\Compiler\AdminRegisterPass;
|
||||
use KupShop\AdminBundle\DependencyInjection\Compiler\WindowTabPass;
|
||||
use KupShop\AdminBundle\Util\PrintCenter\PrintLabelsBase;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
class AdminBundle extends Bundle
|
||||
{
|
||||
public function build(ContainerBuilder $container)
|
||||
{
|
||||
$container->registerForAutoconfiguration(WindowTab::class)
|
||||
->addTag('kupshop.admin.window_tab')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
$container->registerForAutoconfiguration(IAdminRegisterDynamic::class)
|
||||
->addTag('kupshop.admin.register')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
$container->registerForAutoconfiguration(IAdminRegisterStatic::class)
|
||||
->addTag('kupshop.admin.register')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
$container->registerForAutoconfiguration(PrintLabelsBase::class)
|
||||
->addTag('kupshop.admin.products.print_label')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
$container->registerForAutoconfiguration(IAction::class)
|
||||
->addTag('kupshop.admin.action')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
$container->registerForAutoconfiguration(IListMassEdit::class)
|
||||
->addTag('kupshop.admin.list_mass_edit')
|
||||
->setPublic(false)
|
||||
->setAutowired(true);
|
||||
|
||||
$container->addCompilerPass(new WindowTabPass());
|
||||
$container->addCompilerPass(new AdminRegisterPass());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user