1 | <?php |
||
22 | abstract class AbstractBundle implements BundleInterface |
||
23 | { |
||
24 | use IdentifierTrait, ContainerAwareTrait; |
||
25 | |||
26 | /** |
||
27 | * @var AbstractExtension[] |
||
28 | */ |
||
29 | private $extensions = null; |
||
30 | |||
31 | /** |
||
32 | * Get bundle extensions. |
||
33 | * |
||
34 | * @return AbstractExtension[]|null |
||
35 | */ |
||
36 | final public function getContainerExtensions() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function build(ContainerBuilder $container) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function boot() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function shutdown() |
||
75 | |||
76 | /** |
||
77 | * Get extension definition. |
||
78 | * |
||
79 | * @return AbstractExtension[]|null |
||
80 | */ |
||
81 | protected function getExtensions() |
||
92 | |||
93 | /** |
||
94 | * Assert that extension should instance of \Borobudur\Kernel\Bundling\AbstractExtension |
||
95 | * |
||
96 | * @param mixed $extension |
||
97 | * |
||
98 | * @throws RuntimeException |
||
99 | */ |
||
100 | private function assertInstanceOfExtension($extension) |
||
109 | |||
110 | /** |
||
111 | * Get built extensions. |
||
112 | * |
||
113 | * @return AbstractExtension[]|null |
||
114 | */ |
||
115 | private function getBuiltExtensions() |
||
123 | } |
||
124 |