@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param Container $container |
| 64 | 64 | * |
| 65 | - * @return callable |
|
| 65 | + * @return \Closure |
|
| 66 | 66 | */ |
| 67 | 67 | private function getOrmEmDefinition(Container $container): callable |
| 68 | 68 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * @param Container $container |
| 102 | 102 | * |
| 103 | - * @return callable |
|
| 103 | + * @return \Closure |
|
| 104 | 104 | */ |
| 105 | 105 | private function getOrmEmConfigDefinition(Container $container): callable |
| 106 | 106 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * @param Container $container |
| 146 | 146 | * |
| 147 | - * @return callable |
|
| 147 | + * @return \Closure |
|
| 148 | 148 | */ |
| 149 | 149 | private function getOrmEmsDefinition(Container $container): callable |
| 150 | 150 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * @param Container $container |
| 178 | 178 | * |
| 179 | - * @return callable |
|
| 179 | + * @return \Closure |
|
| 180 | 180 | */ |
| 181 | 181 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
| 182 | 182 | { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | /** |
| 324 | 324 | * @param Container $container |
| 325 | 325 | * |
| 326 | - * @return callable |
|
| 326 | + * @return \Closure |
|
| 327 | 327 | */ |
| 328 | 328 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
| 329 | 329 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * @param Container $container |
| 337 | 337 | * |
| 338 | - * @return callable |
|
| 338 | + * @return \Closure |
|
| 339 | 339 | */ |
| 340 | 340 | private function getOrmManagerRegistryDefintion(Container $container): callable |
| 341 | 341 | { |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | /** |
| 455 | 455 | * @param Container $container |
| 456 | 456 | * |
| 457 | - * @return callable |
|
| 457 | + * @return \Closure |
|
| 458 | 458 | */ |
| 459 | 459 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
| 460 | 460 | { |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | /** |
| 467 | 467 | * @param Container $container |
| 468 | 468 | * |
| 469 | - * @return callable |
|
| 469 | + * @return \Closure |
|
| 470 | 470 | */ |
| 471 | 471 | private function getOrmNamingStrategyDefinition(Container $container): callable |
| 472 | 472 | { |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | /** |
| 479 | 479 | * @param Container $container |
| 480 | 480 | * |
| 481 | - * @return callable |
|
| 481 | + * @return \Closure |
|
| 482 | 482 | */ |
| 483 | 483 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
| 484 | 484 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | private function getOrmEmDefinition(Container $container): callable |
| 68 | 68 | { |
| 69 | - return function () use ($container) { |
|
| 69 | + return function() use ($container) { |
|
| 70 | 70 | $ems = $container['doctrine.orm.ems']; |
| 71 | 71 | |
| 72 | 72 | return $ems[$container['doctrine.orm.ems.default']]; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function getOrmApcuCacheFactoryDefinition(Container $container): callable |
| 82 | 82 | { |
| 83 | - return $container->factory(function () use ($container) { |
|
| 83 | + return $container->factory(function() use ($container) { |
|
| 84 | 84 | return new ApcuCache(); |
| 85 | 85 | }); |
| 86 | 86 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private function getOrmArrayCacheFactoryDefinition(Container $container): callable |
| 94 | 94 | { |
| 95 | - return $container->factory(function () use ($container) { |
|
| 95 | + return $container->factory(function() use ($container) { |
|
| 96 | 96 | return new ArrayCache(); |
| 97 | 97 | }); |
| 98 | 98 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | private function getOrmEmConfigDefinition(Container $container): callable |
| 106 | 106 | { |
| 107 | - return function () use ($container) { |
|
| 107 | + return function() use ($container) { |
|
| 108 | 108 | $configs = $container['doctrine.orm.ems.config']; |
| 109 | 109 | |
| 110 | 110 | return $configs[$container['doctrine.orm.ems.default']]; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | private function getOrmEmsDefinition(Container $container): callable |
| 150 | 150 | { |
| 151 | - return function () use ($container) { |
|
| 151 | + return function() use ($container) { |
|
| 152 | 152 | $container['doctrine.orm.ems.options.initializer'](); |
| 153 | 153 | |
| 154 | 154 | $ems = new Container(); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $config = $container['doctrine.orm.ems.config'][$name]; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - $ems[$name] = function () use ($container, $options, $config) { |
|
| 163 | + $ems[$name] = function() use ($container, $options, $config) { |
|
| 164 | 164 | return EntityManager::create( |
| 165 | 165 | $container['doctrine.dbal.dbs'][$options['connection']], |
| 166 | 166 | $config, |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
| 182 | 182 | { |
| 183 | - return function () use ($container) { |
|
| 183 | + return function() use ($container) { |
|
| 184 | 184 | $container['doctrine.orm.ems.options.initializer'](); |
| 185 | 185 | |
| 186 | 186 | $configs = new Container(); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | private function getOrmEmsOptionsInitializerDefinition(Container $container): callable |
| 293 | 293 | { |
| 294 | - return $container->protect(function () use ($container) { |
|
| 294 | + return $container->protect(function() use ($container) { |
|
| 295 | 295 | static $initialized = false; |
| 296 | 296 | |
| 297 | 297 | if ($initialized) { |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
| 329 | 329 | { |
| 330 | - return function () use ($container) { |
|
| 330 | + return function() use ($container) { |
|
| 331 | 331 | return new DefaultEntityListenerResolver(); |
| 332 | 332 | }; |
| 333 | 333 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | */ |
| 340 | 340 | private function getOrmManagerRegistryDefintion(Container $container): callable |
| 341 | 341 | { |
| 342 | - return function ($container) { |
|
| 342 | + return function($container) { |
|
| 343 | 343 | return new DoctrineOrmManagerRegistry($container); |
| 344 | 344 | }; |
| 345 | 345 | } |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | private function getOrmMappingDriverFactoryAnnotation(Container $container): callable |
| 353 | 353 | { |
| 354 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 354 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 355 | 355 | return $config->newDefaultAnnotationDriver((array) $mapping['path'], $false); |
| 356 | 356 | }); |
| 357 | 357 | } |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | private function getOrmMappingDriverFactoryPhp(Container $container): callable |
| 365 | 365 | { |
| 366 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 366 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 367 | 367 | return new StaticPHPDriver($mapping['path']); |
| 368 | 368 | }); |
| 369 | 369 | } |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | */ |
| 376 | 376 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
| 377 | 377 | { |
| 378 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 378 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 379 | 379 | return new SimplifiedYamlDriver( |
| 380 | 380 | [$mapping['path'] => $mapping['namespace']], |
| 381 | 381 | $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | */ |
| 391 | 391 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
| 392 | 392 | { |
| 393 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 393 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 394 | 394 | return new SimplifiedXmlDriver( |
| 395 | 395 | [$mapping['path'] => $mapping['namespace']], |
| 396 | 396 | $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | */ |
| 406 | 406 | private function getOrmMappingDriverFactoryYaml(Container $container): callable |
| 407 | 407 | { |
| 408 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 408 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 409 | 409 | return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION); |
| 410 | 410 | }); |
| 411 | 411 | } |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | */ |
| 418 | 418 | private function getOrmMappingDriverFactoryXml(Container $container): callable |
| 419 | 419 | { |
| 420 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 420 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 421 | 421 | return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION); |
| 422 | 422 | }); |
| 423 | 423 | } |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | */ |
| 430 | 430 | private function getOrmMappingDriverChainDefinition(Container $container): callable |
| 431 | 431 | { |
| 432 | - return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) { |
|
| 432 | + return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) { |
|
| 433 | 433 | $chain = new MappingDriverChain(); |
| 434 | 434 | foreach ($mappings as $mapping) { |
| 435 | 435 | if (!is_array($mapping)) { |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | */ |
| 459 | 459 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
| 460 | 460 | { |
| 461 | - return function () use ($container) { |
|
| 461 | + return function() use ($container) { |
|
| 462 | 462 | return new DefaultRepositoryFactory(); |
| 463 | 463 | }; |
| 464 | 464 | } |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | */ |
| 471 | 471 | private function getOrmNamingStrategyDefinition(Container $container): callable |
| 472 | 472 | { |
| 473 | - return function () use ($container) { |
|
| 473 | + return function() use ($container) { |
|
| 474 | 474 | return new DefaultNamingStrategy(); |
| 475 | 475 | }; |
| 476 | 476 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | */ |
| 483 | 483 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
| 484 | 484 | { |
| 485 | - return function () use ($container) { |
|
| 485 | + return function() use ($container) { |
|
| 486 | 486 | return new DefaultQuoteStrategy(); |
| 487 | 487 | }; |
| 488 | 488 | } |