@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | private function getDbDefinition(Container $container): callable |
41 | 41 | { |
42 | - return function () use ($container) { |
|
42 | + return function() use ($container) { |
|
43 | 43 | $dbs = $container['doctrine.dbal.dbs']; |
44 | 44 | |
45 | 45 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | private function getDbApcuCacheFactoryDefinition(Container $container): callable |
55 | 55 | { |
56 | - return $container->factory(function () use ($container) { |
|
56 | + return $container->factory(function() use ($container) { |
|
57 | 57 | return new ApcuCache(); |
58 | 58 | }); |
59 | 59 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | private function getDbArrayCacheFactoryDefinition(Container $container): callable |
67 | 67 | { |
68 | - return $container->factory(function () use ($container) { |
|
68 | + return $container->factory(function() use ($container) { |
|
69 | 69 | return new ArrayCache(); |
70 | 70 | }); |
71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private function getDbConfigDefinition(Container $container): callable |
79 | 79 | { |
80 | - return function () use ($container) { |
|
80 | + return function() use ($container) { |
|
81 | 81 | $dbs = $container['doctrine.dbal.dbs.config']; |
82 | 82 | |
83 | 83 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | private function getDbEventManagerDefinition(Container $container): callable |
117 | 117 | { |
118 | - return function () use ($container) { |
|
118 | + return function() use ($container) { |
|
119 | 119 | $dbs = $container['doctrine.dbal.dbs.event_manager']; |
120 | 120 | |
121 | 121 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | private function getDbsDefinition(Container $container): callable |
131 | 131 | { |
132 | - return function () use ($container) { |
|
132 | + return function() use ($container) { |
|
133 | 133 | $container['doctrine.dbal.dbs.options.initializer'](); |
134 | 134 | |
135 | 135 | $dbs = new Container(); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $manager = $container['doctrine.dbal.dbs.event_manager'][$name]; |
143 | 143 | } |
144 | 144 | |
145 | - $dbs[$name] = function () use ($options, $config, $manager) { |
|
145 | + $dbs[$name] = function() use ($options, $config, $manager) { |
|
146 | 146 | return DriverManager::getConnection($options['connection'], $config, $manager); |
147 | 147 | }; |
148 | 148 | } |
@@ -158,14 +158,14 @@ discard block |
||
158 | 158 | */ |
159 | 159 | private function getDbsConfigDefinition(Container $container): callable |
160 | 160 | { |
161 | - return function () use ($container) { |
|
161 | + return function() use ($container) { |
|
162 | 162 | $container['doctrine.dbal.dbs.options.initializer'](); |
163 | 163 | |
164 | 164 | $addLogger = $container['logger'] ?? false; |
165 | 165 | |
166 | 166 | $configs = new Container(); |
167 | 167 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
168 | - $configs[$name] = function () use ($addLogger, $container, $name, $options) { |
|
168 | + $configs[$name] = function() use ($addLogger, $container, $name, $options) { |
|
169 | 169 | $configOptions = $options['configuration']; |
170 | 170 | |
171 | 171 | $config = new Configuration(); |
@@ -195,12 +195,12 @@ discard block |
||
195 | 195 | */ |
196 | 196 | private function getDbsEventManagerDefinition(Container $container): callable |
197 | 197 | { |
198 | - return function () use ($container) { |
|
198 | + return function() use ($container) { |
|
199 | 199 | $container['doctrine.dbal.dbs.options.initializer'](); |
200 | 200 | |
201 | 201 | $managers = new Container(); |
202 | 202 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
203 | - $managers[$name] = function () { |
|
203 | + $managers[$name] = function() { |
|
204 | 204 | return new EventManager(); |
205 | 205 | }; |
206 | 206 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | */ |
217 | 217 | private function getDbsOptionsInitializerDefinition(Container $container): callable |
218 | 218 | { |
219 | - return $container->protect(function () use ($container) { |
|
219 | + return $container->protect(function() use ($container) { |
|
220 | 220 | static $initialized = false; |
221 | 221 | |
222 | 222 | if ($initialized) { |
@@ -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(); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $config = $container['doctrine.orm.ems.config'][$name]; |
160 | 160 | } |
161 | 161 | |
162 | - $ems[$name] = function () use ($container, $options, $config) { |
|
162 | + $ems[$name] = function() use ($container, $options, $config) { |
|
163 | 163 | return EntityManager::create( |
164 | 164 | $container['doctrine.dbal.dbs'][$options['connection']], |
165 | 165 | $config, |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
181 | 181 | { |
182 | - return function () use ($container) { |
|
182 | + return function() use ($container) { |
|
183 | 183 | $container['doctrine.orm.ems.options.initializer'](); |
184 | 184 | |
185 | 185 | $configs = new Container(); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | */ |
284 | 284 | private function getOrmEmsOptionsInitializerDefinition(Container $container): callable |
285 | 285 | { |
286 | - return $container->protect(function () use ($container) { |
|
286 | + return $container->protect(function() use ($container) { |
|
287 | 287 | static $initialized = false; |
288 | 288 | |
289 | 289 | if ($initialized) { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | */ |
320 | 320 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
321 | 321 | { |
322 | - return function () use ($container) { |
|
322 | + return function() use ($container) { |
|
323 | 323 | return new DefaultEntityListenerResolver(); |
324 | 324 | }; |
325 | 325 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | */ |
332 | 332 | private function getOrmManagerRegistryDefintion(Container $container): callable |
333 | 333 | { |
334 | - return function ($container) { |
|
334 | + return function($container) { |
|
335 | 335 | return new DoctrineOrmManagerRegistry($container); |
336 | 336 | }; |
337 | 337 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | private function getOrmMappingDriverFactoryAnnotation(Container $container): callable |
345 | 345 | { |
346 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
346 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
347 | 347 | return $config->newDefaultAnnotationDriver((array) $mapping['path'], false); |
348 | 348 | }); |
349 | 349 | } |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | */ |
356 | 356 | private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable |
357 | 357 | { |
358 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
358 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
359 | 359 | return new StaticPHPDriver($mapping['path']); |
360 | 360 | }); |
361 | 361 | } |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | */ |
368 | 368 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
369 | 369 | { |
370 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
370 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
371 | 371 | return new SimplifiedYamlDriver( |
372 | 372 | [$mapping['path'] => $mapping['namespace']], |
373 | 373 | $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | */ |
383 | 383 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
384 | 384 | { |
385 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
385 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
386 | 386 | return new SimplifiedXmlDriver( |
387 | 387 | [$mapping['path'] => $mapping['namespace']], |
388 | 388 | $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | */ |
398 | 398 | private function getOrmMappingDriverFactoryYaml(Container $container): callable |
399 | 399 | { |
400 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
400 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
401 | 401 | return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION); |
402 | 402 | }); |
403 | 403 | } |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | */ |
410 | 410 | private function getOrmMappingDriverFactoryXml(Container $container): callable |
411 | 411 | { |
412 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
412 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
413 | 413 | return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION); |
414 | 414 | }); |
415 | 415 | } |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | */ |
422 | 422 | private function getOrmMappingDriverChainDefinition(Container $container): callable |
423 | 423 | { |
424 | - return $container->protect(function (Configuration $config, array $mappings) use ($container) { |
|
424 | + return $container->protect(function(Configuration $config, array $mappings) use ($container) { |
|
425 | 425 | $chain = new MappingDriverChain(); |
426 | 426 | foreach ($mappings as $mapping) { |
427 | 427 | if (isset($mapping['alias'])) { |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | */ |
445 | 445 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
446 | 446 | { |
447 | - return function () use ($container) { |
|
447 | + return function() use ($container) { |
|
448 | 448 | return new DefaultRepositoryFactory(); |
449 | 449 | }; |
450 | 450 | } |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | */ |
457 | 457 | private function getOrmNamingStrategyDefinition(Container $container): callable |
458 | 458 | { |
459 | - return function () use ($container) { |
|
459 | + return function() use ($container) { |
|
460 | 460 | return new DefaultNamingStrategy(); |
461 | 461 | }; |
462 | 462 | } |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | */ |
469 | 469 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
470 | 470 | { |
471 | - return function () use ($container) { |
|
471 | + return function() use ($container) { |
|
472 | 472 | return new DefaultQuoteStrategy(); |
473 | 473 | }; |
474 | 474 | } |