-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathAdministration.php
38 lines (32 loc) · 1.06 KB
/
Administration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php declare(strict_types=1);
namespace Shopware\Administration;
use Pentatrion\ViteBundle\PentatrionViteBundle;
use Shopware\Administration\DependencyInjection\AdministrationMigrationCompilerPass;
use Shopware\Core\Framework\Bundle;
use Shopware\Core\Framework\Log\Package;
use Shopware\Core\Framework\Parameter\AdditionalBundleParameters;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @internal
*/
#[Package('administration')]
class Administration extends Bundle
{
public function getTemplatePriority(): int
{
return -1;
}
public function build(ContainerBuilder $container): void
{
parent::build($container);
$this->buildDefaultConfig($container);
$container->addCompilerPass(new AdministrationMigrationCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 0);
}
public function getAdditionalBundles(AdditionalBundleParameters $parameters): array
{
return [
new PentatrionViteBundle(),
];
}
}