@@ -38,11 +38,9 @@ abstract class AbstractDoctrineExtension extends Extension
38
38
/**
39
39
* @param array $objectManager A configured object manager
40
40
*
41
- * @return void
42
- *
43
41
* @throws \InvalidArgumentException
44
42
*/
45
- protected function loadMappingInformation (array $ objectManager , ContainerBuilder $ container )
43
+ protected function loadMappingInformation (array $ objectManager , ContainerBuilder $ container ): void
46
44
{
47
45
if ($ objectManager ['auto_mapping ' ]) {
48
46
// automatically register bundle mappings
@@ -107,10 +105,8 @@ protected function loadMappingInformation(array $objectManager, ContainerBuilder
107
105
* Register the alias for this mapping driver.
108
106
*
109
107
* Aliases can be used in the Query languages of all the Doctrine object managers to simplify writing tasks.
110
- *
111
- * @return void
112
108
*/
113
- protected function setMappingDriverAlias (array $ mappingConfig , string $ mappingName )
109
+ protected function setMappingDriverAlias (array $ mappingConfig , string $ mappingName ): void
114
110
{
115
111
if (isset ($ mappingConfig ['alias ' ])) {
116
112
$ this ->aliasMap [$ mappingConfig ['alias ' ]] = $ mappingConfig ['prefix ' ];
@@ -122,11 +118,9 @@ protected function setMappingDriverAlias(array $mappingConfig, string $mappingNa
122
118
/**
123
119
* Register the mapping driver configuration for later use with the object managers metadata driver chain.
124
120
*
125
- * @return void
126
- *
127
121
* @throws \InvalidArgumentException
128
122
*/
129
- protected function setMappingDriverConfig (array $ mappingConfig , string $ mappingName )
123
+ protected function setMappingDriverConfig (array $ mappingConfig , string $ mappingName ): void
130
124
{
131
125
$ mappingDirectory = $ mappingConfig ['dir ' ];
132
126
if (!is_dir ($ mappingDirectory )) {
@@ -178,10 +172,8 @@ protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \Re
178
172
179
173
/**
180
174
* Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
181
- *
182
- * @return void
183
175
*/
184
- protected function registerMappingDrivers (array $ objectManager , ContainerBuilder $ container )
176
+ protected function registerMappingDrivers (array $ objectManager , ContainerBuilder $ container ): void
185
177
{
186
178
// configure metadata driver for each bundle based on the type of mapping files found
187
179
if ($ container ->hasDefinition ($ this ->getObjectManagerElementName ($ objectManager ['name ' ].'_metadata_driver ' ))) {
@@ -235,11 +227,9 @@ protected function registerMappingDrivers(array $objectManager, ContainerBuilder
235
227
/**
236
228
* Assertion if the specified mapping information is valid.
237
229
*
238
- * @return void
239
- *
240
230
* @throws \InvalidArgumentException
241
231
*/
242
- protected function assertValidMappingConfiguration (array $ mappingConfig , string $ objectManagerName )
232
+ protected function assertValidMappingConfiguration (array $ mappingConfig , string $ objectManagerName ): void
243
233
{
244
234
if (!$ mappingConfig ['type ' ] || !$ mappingConfig ['dir ' ] || !$ mappingConfig ['prefix ' ]) {
245
235
throw new \InvalidArgumentException (sprintf ('Mapping definitions for Doctrine manager "%s" require at least the "type", "dir" and "prefix" options. ' , $ objectManagerName ));
@@ -325,11 +315,9 @@ private function detectMappingType(string $directory, ContainerBuilder $containe
325
315
/**
326
316
* Loads a configured object manager metadata, query or result cache driver.
327
317
*
328
- * @return void
329
- *
330
318
* @throws \InvalidArgumentException in case of unknown driver type
331
319
*/
332
- protected function loadObjectManagerCacheDriver (array $ objectManager , ContainerBuilder $ container , string $ cacheName )
320
+ protected function loadObjectManagerCacheDriver (array $ objectManager , ContainerBuilder $ container , string $ cacheName ): void
333
321
{
334
322
$ this ->loadCacheDriver ($ cacheName , $ objectManager ['name ' ], $ objectManager [$ cacheName .'_driver ' ], $ container );
335
323
}
0 commit comments