This repository was archived by the owner on Sep 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWBWCoreBundle.php
More file actions
62 lines (54 loc) · 1.78 KB
/
WBWCoreBundle.php
File metadata and controls
62 lines (54 loc) · 1.78 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* This file is part of the core-bundle package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\ColorProviderCompilerPass;
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\JavascriptProviderCompilerPass;
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\QuoteProviderCompilerPass;
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\StylesheetProviderCompilerPass;
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
/**
* Core bundle.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\CoreBundle
*/
class WBWCoreBundle extends Bundle implements AssetsProviderInterface {
/**
* Translation domain.
*
* @var string
*/
const TRANSLATION_DOMAIN = "WBWCoreBundle";
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container): void {
$container->addCompilerPass(new ColorProviderCompilerPass());
$container->addCompilerPass(new QuoteProviderCompilerPass());
$container->addCompilerPass(new JavascriptProviderCompilerPass());
$container->addCompilerPass(new StylesheetProviderCompilerPass());
}
/**
* {@inheritDoc}
*/
public function getAssetsRelativeDirectory(): string {
return self::ASSETS_RELATIVE_DIRECTORY;
}
/**
* Get the translation domain.
*
* @return string Returns the translation domain.
*/
public static function getTranslationDomain(): string {
return self::TRANSLATION_DOMAIN;
}
}