Explorar o código

[DoctrineBundle] reindented some code for clarity

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
ffd8c31f3a

+ 24 - 2
src/Symfony/Bundle/DoctrineBundle/DependencyInjection/Configuration.php

@@ -62,7 +62,23 @@ class Configuration implements ConfigurationInterface
                     ->ifTrue(function ($v) { return is_array($v) && !array_key_exists('connections', $v) && !array_key_exists('connection', $v); })
                     ->then(function ($v) {
                         $connection = array();
-                        foreach (array('dbname', 'host', 'port', 'user', 'password', 'driver', 'driver_class', 'options', 'path', 'memory', 'unix_socket', 'wrapper_class', 'platform_service', 'charset', 'logging') as $key) {
+                        foreach (array(
+                            'dbname',
+                            'host',
+                            'port',
+                            'user',
+                            'password',
+                            'driver',
+                            'driver_class',
+                            'options',
+                            'path',
+                            'memory',
+                            'unix_socket',
+                            'wrapper_class', 'wrapper-class', 'wrapperClass',
+                            'platform_service', 'platform-service', 'platform-service',
+                            'charset',
+                            'logging'
+                        ) as $key) {
                             if (array_key_exists($key, $v)) {
                                 $connection[$key] = $v[$key];
                                 unset($v[$key]);
@@ -143,7 +159,13 @@ class Configuration implements ConfigurationInterface
                         ->ifTrue(function ($v) { return is_array($v) && !array_key_exists('entity_managers', $v) && !array_key_exists('entity_manager', $v); })
                         ->then(function ($v) {
                             $entityManager = array();
-                            foreach (array('result_cache_driver', 'result-cache-driver', 'metadata_cache_driver', 'metadata-cache-driver', 'query_cache_driver', 'query-cache-driver', 'mappings', 'mapping', 'connection') as $key) {
+                            foreach (array(
+                                'result_cache_driver', 'result-cache-driver',
+                                'metadata_cache_driver', 'metadata-cache-driver',
+                                'query_cache_driver', 'query-cache-driver',
+                                'mappings', 'mapping',
+                                'connection'
+                            ) as $key) {
                                 if (array_key_exists($key, $v)) {
                                     $entityManager[$key] = $v[$key];
                                     unset($v[$key]);