@@ -62,80 +62,83 @@ public static function handleAllExtensions()
6262 }
6363 // Temnplating TV+
6464 foreach (self ::$ registeredExtensions as $ extensionKey => $ path ) {
65- self ::loadDataStructurePlaces ($ path );
66- self ::loadTemplatePlaces ($ path );
67- self ::loadBackendLayoutPlaces ($ path );
65+ self ::loadDataStructurePlaces ($ extensionKey , $ path );
66+ self ::loadTemplatePlaces ($ extensionKey , $ path );
67+ self ::loadBackendLayoutPlaces ($ extensionKey , $ path );
6868
6969 // Last one, as it contain references to the other ones
70- self ::loadMappingPlaces ($ path );
70+ self ::loadMappingPlaces ($ extensionKey , $ path );
7171 }
7272 }
7373
7474 /**
7575 * Loads the DataStructurePlaces.php inside the extension path
76- * @param string $path
7776 * @internal
7877 */
79- protected static function loadDataStructurePlaces ($ path )
78+ protected static function loadDataStructurePlaces (string $ extensionKey , string $ path ): void
8079 {
8180 static ::loadPlaces (
81+ $ extensionKey ,
8282 $ path . '/DataStructurePlaces.php ' ,
8383 \Tvp \TemplaVoilaPlus \Handler \Configuration \DataConfigurationHandler::$ identifier
8484 );
8585 }
8686
8787 /**
8888 * Loads the MappingPlaces.php inside the extension path
89- * @param string $path
9089 * @internal
9190 */
92- protected static function loadMappingPlaces ($ path )
91+ protected static function loadMappingPlaces (string $ extensionKey , string $ path ): void
9392 {
9493 static ::loadPlaces (
94+ $ extensionKey ,
9595 $ path . '/MappingPlaces.php ' ,
9696 \Tvp \TemplaVoilaPlus \Handler \Configuration \MappingConfigurationHandler::$ identifier
9797 );
9898 }
9999
100100 /**
101101 * Loads the TemplatePlaces.php inside the extension path
102- * @param string $path
103102 * @internal
104103 */
105- protected static function loadTemplatePlaces ($ path )
104+ protected static function loadTemplatePlaces (string $ extensionKey , string $ path ): void
106105 {
107106 static ::loadPlaces (
107+ $ extensionKey ,
108108 $ path . '/TemplatePlaces.php ' ,
109109 \Tvp \TemplaVoilaPlus \Handler \Configuration \TemplateConfigurationHandler::$ identifier
110110 );
111111 }
112112
113113 /**
114114 * Loads the TemplatePlaces.php inside the extension path
115- * @param string $path
116115 * @internal
117116 */
118- protected static function loadBackendLayoutPlaces ($ path )
117+ protected static function loadBackendLayoutPlaces (string $ extensionKey , string $ path ): void
119118 {
120119 static ::loadPlaces (
120+ $ extensionKey ,
121121 $ path . '/BackendLayoutPlaces.php ' ,
122122 \Tvp \TemplaVoilaPlus \Handler \Configuration \BackendLayoutConfigurationHandler::$ identifier
123123 );
124124 }
125125 /**
126126 * Loads the places inside the extension files
127- * @param string $pathAndFilename
128- * @param string $defaultConfigurationHandlerIdentifier
129127 * @internal
130128 */
131- protected static function loadPlaces (string $ pathAndFilename , string $ defaultConfigurationHandlerIdentifier )
129+ protected static function loadPlaces (
130+ string $ extensionKey ,
131+ string $ pathAndFilename ,
132+ string $ defaultConfigurationHandlerIdentifier
133+ ): void
132134 {
133135 $ configurationService = GeneralUtility::makeInstance (ConfigurationService::class);
134136 $ placeConfigurations = self ::getFileContentArray ($ pathAndFilename );
135137 foreach ($ placeConfigurations as $ identifier => $ placeConfiguration ) {
136138 $ configurationService ->registerPlace (
137139 $ identifier ,
138140 $ placeConfiguration ['name ' ],
141+ $ extensionKey ,
139142 $ placeConfiguration ['scope ' ] ?? '' ,
140143 $ placeConfiguration ['configurationHandler ' ] ?? $ defaultConfigurationHandlerIdentifier ,
141144 $ placeConfiguration ['loadSaveHandler ' ],
@@ -150,7 +153,7 @@ protected static function loadPlaces(string $pathAndFilename, string $defaultCon
150153 * @param string $path
151154 * @internal
152155 */
153- protected static function loadExtending ($ path )
156+ protected static function loadExtending (string $ path ): void
154157 {
155158 $ extending = self ::getFileContentArray ($ path . '/Extending.php ' );
156159 if (isset ($ extending ['renderHandler ' ])) {
@@ -173,7 +176,7 @@ protected static function loadExtending($path)
173176 }
174177 }
175178
176- protected static function registerHandler (array $ handlerConfigurations , string $ implementorsInterface )
179+ protected static function registerHandler (array $ handlerConfigurations , string $ implementorsInterface ): void
177180 {
178181 $ configurationService = GeneralUtility::makeInstance (ConfigurationService::class);
179182 foreach ($ handlerConfigurations as $ identifier => $ handlerConfiguration ) {
@@ -188,10 +191,9 @@ protected static function registerHandler(array $handlerConfigurations, string $
188191
189192 /**
190193 * Loads the Extending.php inside the extension path and registers dataStructureHandler
191- * @param string $path
192194 * @internal
193195 */
194- protected static function loadNewContentElementWizardConfiguration ($ path )
196+ protected static function loadNewContentElementWizardConfiguration (string $ path ): void
195197 {
196198 /** @var ConfigurationService */
197199 $ configurationService = GeneralUtility::makeInstance (ConfigurationService::class);
@@ -219,7 +221,7 @@ protected static function loadNewContentElementWizardConfiguration($path)
219221 * @param string $file Absolute path and filename
220222 * @internal
221223 */
222- protected static function getFileContentArray ($ file ): array
224+ protected static function getFileContentArray (string $ file ): array
223225 {
224226 if (is_file ($ file ) && is_readable ($ file )) {
225227 $ content = require $ file ;
0 commit comments