forked from manuxi/SuluSchemaOrgBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SuluSchemaOrgBundle.php
30 lines (26 loc) · 1.1 KB
/
SuluSchemaOrgBundle.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
<?php
namespace Plozmun\Bundle\SuluSchemaOrgBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Plozmun\Bundle\SuluSchemaOrgBundle\DependencyInjection\Compiler\ExtensionPass;
use Plozmun\Bundle\SuluSchemaOrgBundle\DependencyInjection\Compiler\AnalyzerPass;
use Plozmun\Bundle\SuluSchemaOrgBundle\DependencyInjection\Compiler\BuilderPass;
use Plozmun\Bundle\SuluSchemaOrgBundle\DependencyInjection\Compiler\TransformerPass;
use Plozmun\Bundle\SuluSchemaOrgBundle\Extension\ExtensionInterface;
/**
* Entry-point for university-bundle.
*/
class SuluSchemaOrgBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->registerForAutoconfiguration(ExtensionInterface::class)
->addTag('sulu.schema_org.extension')
;
$container->addCompilerPass(new AnalyzerPass());
$container->addCompilerPass(new BuilderPass());
$container->addCompilerPass(new ExtensionPass());
$container->addCompilerPass(new TransformerPass());
}
}