@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | /** |
122 | 122 | * @param Container $container |
123 | 123 | * |
124 | - * @return callable |
|
124 | + * @return \Closure |
|
125 | 125 | */ |
126 | 126 | private function getOrmEmsDefinition(Container $container): callable |
127 | 127 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * @param Container $container |
155 | 155 | * |
156 | - * @return callable |
|
156 | + * @return \Closure |
|
157 | 157 | */ |
158 | 158 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
159 | 159 | { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @param string $name |
175 | 175 | * @param array $options |
176 | 176 | * |
177 | - * @return callable |
|
177 | + * @return \Closure |
|
178 | 178 | */ |
179 | 179 | private function getOrmEmConfigByNameAndOptionsDefinition( |
180 | 180 | Container $container, |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | /** |
364 | 364 | * @param Container $container |
365 | 365 | * |
366 | - * @return callable |
|
366 | + * @return \Closure |
|
367 | 367 | */ |
368 | 368 | private function getOrmNamingStrategyDefinition(Container $container): callable |
369 | 369 | { |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * @param Container $container |
377 | 377 | * |
378 | - * @return callable |
|
378 | + * @return \Closure |
|
379 | 379 | */ |
380 | 380 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
381 | 381 | { |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | /** |
388 | 388 | * @param Container $container |
389 | 389 | * |
390 | - * @return callable |
|
390 | + * @return \Closure |
|
391 | 391 | */ |
392 | 392 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
393 | 393 | { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | /** |
400 | 400 | * @param Container $container |
401 | 401 | * |
402 | - * @return callable |
|
402 | + * @return \Closure |
|
403 | 403 | */ |
404 | 404 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
405 | 405 | { |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | /** |
412 | 412 | * @param Container $container |
413 | 413 | * |
414 | - * @return callable |
|
414 | + * @return \Closure |
|
415 | 415 | */ |
416 | 416 | private function getOrmSecondLevelCacheConfigurationDefinition(Container $container): callable |
417 | 417 | { |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | /** |
424 | 424 | * @param Container $container |
425 | 425 | * |
426 | - * @return callable |
|
426 | + * @return \Closure |
|
427 | 427 | */ |
428 | 428 | private function getOrmEmDefinition(Container $container): callable |
429 | 429 | { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | /** |
438 | 438 | * @param Container $container |
439 | 439 | * |
440 | - * @return callable |
|
440 | + * @return \Closure |
|
441 | 441 | */ |
442 | 442 | private function getOrmEmConfigDefinition(Container $container): callable |
443 | 443 | { |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | /** |
452 | 452 | * @param Container $container |
453 | 453 | * |
454 | - * @return callable |
|
454 | + * @return \Closure |
|
455 | 455 | */ |
456 | 456 | private function getOrmManagerRegistryDefintion(Container $container): callable |
457 | 457 | { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | private function getOrmEmsOptionsInitializerDefinition(Container $container): callable |
92 | 92 | { |
93 | - return $container->protect(function () use ($container) { |
|
93 | + return $container->protect(function() use ($container) { |
|
94 | 94 | static $initialized = false; |
95 | 95 | |
96 | 96 | if ($initialized) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | private function getOrmEmsDefinition(Container $container): callable |
127 | 127 | { |
128 | - return function () use ($container) { |
|
128 | + return function() use ($container) { |
|
129 | 129 | $container['doctrine.orm.ems.options.initializer'](); |
130 | 130 | |
131 | 131 | $ems = new Container(); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $config = $container['doctrine.orm.ems.config'][$name]; |
138 | 138 | } |
139 | 139 | |
140 | - $ems[$name] = function () use ($container, $options, $config) { |
|
140 | + $ems[$name] = function() use ($container, $options, $config) { |
|
141 | 141 | return EntityManager::create( |
142 | 142 | $container['doctrine.dbal.dbs'][$options['connection']], |
143 | 143 | $config, |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
159 | 159 | { |
160 | - return function () use ($container) { |
|
160 | + return function() use ($container) { |
|
161 | 161 | $container['doctrine.orm.ems.options.initializer'](); |
162 | 162 | |
163 | 163 | $configs = new Container(); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | string $name, |
182 | 182 | array $options |
183 | 183 | ): callable { |
184 | - return function () use ($container, $name, $options) { |
|
184 | + return function() use ($container, $name, $options) { |
|
185 | 185 | $config = new Configuration(); |
186 | 186 | |
187 | 187 | $config->setProxyDir($container['doctrine.orm.proxies_dir']); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | private function getOrmMappingDriverChainDefinition(Container $container): callable |
243 | 243 | { |
244 | - return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) { |
|
244 | + return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) { |
|
245 | 245 | $container['doctrine.orm.ems.options.initializer'](); |
246 | 246 | |
247 | 247 | /** @var MappingDriverChain $chain */ |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | private function getOrmMappingDriverChainFactoryDefinition(Container $container): callable |
280 | 280 | { |
281 | - return $container->protect(function () use ($container) { |
|
281 | + return $container->protect(function() use ($container) { |
|
282 | 282 | return new MappingDriverChain(); |
283 | 283 | }); |
284 | 284 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | */ |
291 | 291 | private function getOrmMappingDriverFactoryAnnotation(Container $container): callable |
292 | 292 | { |
293 | - return $container->protect(function (array $entity, Configuration $config) { |
|
293 | + return $container->protect(function(array $entity, Configuration $config) { |
|
294 | 294 | $useSimpleAnnotationReader = $entity['use_simple_annotation_reader'] ?? true; |
295 | 295 | |
296 | 296 | return $config->newDefaultAnnotationDriver( |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | */ |
308 | 308 | private function getOrmMappingDriverFactoryYaml(Container $container): callable |
309 | 309 | { |
310 | - return $container->protect(function (array $entity, Configuration $config) { |
|
310 | + return $container->protect(function(array $entity, Configuration $config) { |
|
311 | 311 | return new YamlDriver($entity['path']); |
312 | 312 | }); |
313 | 313 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | */ |
320 | 320 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
321 | 321 | { |
322 | - return $container->protect(function (array $entity, Configuration $config) { |
|
322 | + return $container->protect(function(array $entity, Configuration $config) { |
|
323 | 323 | return new SimplifiedYamlDriver([$entity['path'] => $entity['namespace']]); |
324 | 324 | }); |
325 | 325 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | */ |
332 | 332 | private function getOrmMappingDriverFactoryXml(Container $container): callable |
333 | 333 | { |
334 | - return $container->protect(function (array $entity, Configuration $config) { |
|
334 | + return $container->protect(function(array $entity, Configuration $config) { |
|
335 | 335 | return new XmlDriver($entity['path']); |
336 | 336 | }); |
337 | 337 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
345 | 345 | { |
346 | - return $container->protect(function (array $entity, Configuration $config) { |
|
346 | + return $container->protect(function(array $entity, Configuration $config) { |
|
347 | 347 | return new SimplifiedXmlDriver([$entity['path'] => $entity['namespace']]); |
348 | 348 | }); |
349 | 349 | } |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | */ |
356 | 356 | private function getOrmMappingDriverFactoryPhp(Container $container): callable |
357 | 357 | { |
358 | - return $container->protect(function (array $entity, Configuration $config) { |
|
358 | + return $container->protect(function(array $entity, Configuration $config) { |
|
359 | 359 | return new StaticPHPDriver($entity['path']); |
360 | 360 | }); |
361 | 361 | } |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | */ |
368 | 368 | private function getOrmNamingStrategyDefinition(Container $container): callable |
369 | 369 | { |
370 | - return function () use ($container) { |
|
370 | + return function() use ($container) { |
|
371 | 371 | return new DefaultNamingStrategy(); |
372 | 372 | }; |
373 | 373 | } |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | */ |
380 | 380 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
381 | 381 | { |
382 | - return function () use ($container) { |
|
382 | + return function() use ($container) { |
|
383 | 383 | return new DefaultQuoteStrategy(); |
384 | 384 | }; |
385 | 385 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | */ |
392 | 392 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
393 | 393 | { |
394 | - return function () use ($container) { |
|
394 | + return function() use ($container) { |
|
395 | 395 | return new DefaultEntityListenerResolver(); |
396 | 396 | }; |
397 | 397 | } |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | */ |
404 | 404 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
405 | 405 | { |
406 | - return function () use ($container) { |
|
406 | + return function() use ($container) { |
|
407 | 407 | return new DefaultRepositoryFactory(); |
408 | 408 | }; |
409 | 409 | } |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | */ |
416 | 416 | private function getOrmSecondLevelCacheConfigurationDefinition(Container $container): callable |
417 | 417 | { |
418 | - return function () use ($container) { |
|
418 | + return function() use ($container) { |
|
419 | 419 | return new CacheConfiguration(); |
420 | 420 | }; |
421 | 421 | } |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | */ |
428 | 428 | private function getOrmEmDefinition(Container $container): callable |
429 | 429 | { |
430 | - return function () use ($container) { |
|
430 | + return function() use ($container) { |
|
431 | 431 | $ems = $container['doctrine.orm.ems']; |
432 | 432 | |
433 | 433 | return $ems[$container['doctrine.orm.ems.default']]; |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | */ |
442 | 442 | private function getOrmEmConfigDefinition(Container $container): callable |
443 | 443 | { |
444 | - return function () use ($container) { |
|
444 | + return function() use ($container) { |
|
445 | 445 | $configs = $container['doctrine.orm.ems.config']; |
446 | 446 | |
447 | 447 | return $configs[$container['doctrine.orm.ems.default']]; |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | */ |
456 | 456 | private function getOrmManagerRegistryDefintion(Container $container): callable |
457 | 457 | { |
458 | - return function ($container) { |
|
458 | + return function($container) { |
|
459 | 459 | return new DoctrineOrmManagerRegistry($container); |
460 | 460 | }; |
461 | 461 | } |