1 | <?php |
||
26 | class BootstrapDependencyInjectionContainer |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var EE_Dependency_Map $dependency_map |
||
31 | */ |
||
32 | protected $dependency_map; |
||
33 | |||
34 | /** |
||
35 | * @type LoaderInterface $loader |
||
36 | */ |
||
37 | protected $loader; |
||
38 | |||
39 | /** |
||
40 | * @var EE_Registry $registry |
||
41 | */ |
||
42 | protected $registry; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Can't use this just yet until we exorcise some more of our singleton usage from core |
||
47 | */ |
||
48 | public function buildDependencyInjectionContainer() |
||
55 | |||
56 | |||
57 | /** |
||
58 | * Setups EE_Registry and EE_Dependency_Map |
||
59 | * |
||
60 | * @throws EE_Error |
||
61 | * @throws InvalidDataTypeException |
||
62 | * @throws InvalidInterfaceException |
||
63 | * @throws InvalidArgumentException |
||
64 | */ |
||
65 | public function buildLegacyDependencyInjectionContainer() |
||
80 | |||
81 | |||
82 | /** |
||
83 | * Performs initial setup for the generic Loader |
||
84 | * |
||
85 | * @throws InvalidDataTypeException |
||
86 | * @throws InvalidInterfaceException |
||
87 | * @throws InvalidArgumentException |
||
88 | */ |
||
89 | public function buildLoader() |
||
94 | |||
95 | |||
96 | /** |
||
97 | * @return EE_Dependency_Map |
||
98 | */ |
||
99 | public function getDependencyMap() |
||
103 | |||
104 | |||
105 | /** |
||
106 | * @return EE_Registry |
||
107 | */ |
||
108 | public function getRegistry() |
||
112 | |||
113 | |||
114 | |||
115 | /** |
||
116 | * @return LoaderInterface |
||
117 | */ |
||
118 | public function getLoader() |
||
122 | |||
123 | } |
||
124 |