Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/Bundle/BundleInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /* | |
4 * This file is part of the Symfony package. | |
5 * | |
6 * (c) Fabien Potencier <fabien@symfony.com> | |
7 * | |
8 * For the full copyright and license information, please view the LICENSE | |
9 * file that was distributed with this source code. | |
10 */ | |
11 | |
12 namespace Symfony\Component\HttpKernel\Bundle; | |
13 | |
14 use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
15 use Symfony\Component\DependencyInjection\ContainerBuilder; | |
16 use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; | |
17 | |
18 /** | |
19 * BundleInterface. | |
20 * | |
21 * @author Fabien Potencier <fabien@symfony.com> | |
22 */ | |
23 interface BundleInterface extends ContainerAwareInterface | |
24 { | |
25 /** | |
26 * Boots the Bundle. | |
27 */ | |
28 public function boot(); | |
29 | |
30 /** | |
31 * Shutdowns the Bundle. | |
32 */ | |
33 public function shutdown(); | |
34 | |
35 /** | |
36 * Builds the bundle. | |
37 * | |
38 * It is only ever called once when the cache is empty. | |
39 * | |
40 * @param ContainerBuilder $container A ContainerBuilder instance | |
41 */ | |
42 public function build(ContainerBuilder $container); | |
43 | |
44 /** | |
45 * Returns the container extension that should be implicitly loaded. | |
46 * | |
47 * @return ExtensionInterface|null The default extension or null if there is none | |
48 */ | |
49 public function getContainerExtension(); | |
50 | |
51 /** | |
52 * Returns the bundle name that this bundle overrides. | |
53 * | |
54 * Despite its name, this method does not imply any parent/child relationship | |
55 * between the bundles, just a way to extend and override an existing | |
56 * bundle. | |
57 * | |
58 * @return string The Bundle name it overrides or null if no parent | |
59 */ | |
60 public function getParent(); | |
61 | |
62 /** | |
63 * Returns the bundle name (the class short name). | |
64 * | |
65 * @return string The Bundle name | |
66 */ | |
67 public function getName(); | |
68 | |
69 /** | |
70 * Gets the Bundle namespace. | |
71 * | |
72 * @return string The Bundle namespace | |
73 */ | |
74 public function getNamespace(); | |
75 | |
76 /** | |
77 * Gets the Bundle directory path. | |
78 * | |
79 * The path should always be returned as a Unix path (with /). | |
80 * | |
81 * @return string The Bundle absolute path | |
82 */ | |
83 public function getPath(); | |
84 } |