1 | <?php |
||
17 | class Loader implements SingletonInterface |
||
18 | { |
||
19 | /** |
||
20 | * The different implementations and the order of the execution. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $implementations = [ |
||
25 | // class replacement |
||
26 | 'Xclass', |
||
27 | 'AlternativeImplementations', |
||
28 | // additional functions |
||
29 | 'Hooks', |
||
30 | 'Slots', |
||
31 | // smart object management |
||
32 | 'SmartObjects', |
||
33 | 'ContentObjects', |
||
34 | 'TcaFiles', |
||
35 | 'ExtensionTypoScriptSetup', |
||
36 | 'ContextSensitiveHelps', |
||
37 | // non-critical |
||
38 | 'Plugins', |
||
39 | 'FlexForms', |
||
40 | 'CommandController', |
||
41 | 'StaticTyposcript', |
||
42 | 'ExtensionId', |
||
43 | 'TypeConverter', |
||
44 | 'BackendLayout', |
||
45 | 'LanguageOverride', |
||
46 | 'Icon', |
||
47 | 'Gridelement', |
||
48 | 'FluidNamespace', |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * The Extension key. |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $extensionKey; |
||
57 | |||
58 | /** |
||
59 | * The vendorName. |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | protected $vendorName; |
||
64 | |||
65 | /** |
||
66 | * Call this method in the ext_tables.php file. |
||
67 | * |
||
68 | * @param string $vendorName |
||
69 | * @param string $extensionKey |
||
70 | */ |
||
71 | public static function extTables($vendorName, $extensionKey, array $implementations = []): void |
||
77 | |||
78 | /** |
||
79 | * Call this method in the ext_localconf.php file. |
||
80 | * |
||
81 | * @param string $vendorName |
||
82 | * @param string $extensionKey |
||
83 | */ |
||
84 | public static function extLocalconf($vendorName, $extensionKey, array $implementations = []): void |
||
90 | |||
91 | /** |
||
92 | * Load the ext tables information. |
||
93 | * |
||
94 | * @param string $vendorName |
||
95 | * @param string $extensionKey |
||
96 | */ |
||
97 | public function loadExtTables($vendorName, $extensionKey, array $implementations = []): void |
||
112 | |||
113 | /** |
||
114 | * Load the ext localconf information. |
||
115 | * |
||
116 | * @param string $vendorName |
||
117 | * @param string $extensionKey |
||
118 | */ |
||
119 | public function loadExtLocalconf($vendorName, $extensionKey, array $implementations = []): void |
||
134 | |||
135 | /** |
||
136 | * Get the extension key. |
||
137 | * |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getExtensionKey() |
||
144 | |||
145 | /** |
||
146 | * Get the vendor name. |
||
147 | * |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getVendorName() |
||
154 | |||
155 | /** |
||
156 | * check if the class is loadable and is instantiable |
||
157 | * (exists and is no interface or abstraction etc.). |
||
158 | * |
||
159 | * @param $class |
||
160 | * |
||
161 | * @return bool |
||
162 | */ |
||
163 | public function isInstantiableClass($class) |
||
167 | |||
168 | /** |
||
169 | * Build the Autoloader objects. |
||
170 | * |
||
171 | * @return array |
||
172 | */ |
||
173 | protected function buildAutoLoaderObjects(array $objectNames = []) |
||
191 | |||
192 | /** |
||
193 | * Get the Autoloader Names in the right order. |
||
194 | * |
||
195 | * @return array |
||
196 | */ |
||
197 | protected function getAutoLoaderNamesInRightOrder(array $objectNames = []) |
||
214 | |||
215 | /** |
||
216 | * Prepare the autoLoader information. |
||
217 | * |
||
218 | * @param int $type |
||
219 | * |
||
220 | * @return array |
||
221 | */ |
||
222 | protected function prepareAutoLoaderObjects(array $objects, $type) |
||
238 | |||
239 | /** |
||
240 | * Build the loader information. |
||
241 | * |
||
242 | * @param $objects |
||
243 | * @param $type |
||
244 | * |
||
245 | * @return array |
||
246 | */ |
||
247 | protected function buildLoaderInformation($objects, $type) |
||
257 | } |
||
258 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: