| 1 | <?php |
||
| 19 | class BundleManager |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $bundles = array(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Add bundles. |
||
| 28 | * |
||
| 29 | * @param BundleInterface[] $bundles |
||
| 30 | */ |
||
| 31 | public function add(array $bundles) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Set bundle. |
||
| 40 | * |
||
| 41 | * @param BundleInterface $bundle |
||
| 42 | */ |
||
| 43 | public function set(BundleInterface $bundle) { |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get registered bundle by name. |
||
| 54 | * |
||
| 55 | * @param string $name |
||
| 56 | * |
||
| 57 | * @return BundleInterface|null |
||
| 58 | */ |
||
| 59 | public function get($name) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get all bundles. |
||
| 70 | * |
||
| 71 | * @return BundleInterface[] |
||
| 72 | */ |
||
| 73 | public function all() |
||
| 77 | } |
||
| 78 |