9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
-
13
12
namespace Symfony \Cmf \Bundle \CoreBundle \DependencyInjection \Compiler ;
14
13
15
14
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -36,13 +35,14 @@ class DoctrineOrmMappingsPass implements CompilerPassInterface
36
35
* Usually, you should not need to directly instantiate this class but use
37
36
* one of the factory methods.
38
37
*
39
- * @param Definition|Reference $driver the driver to use
40
- * @param array $namespaces list of namespaces this driver should handle.
41
- * @param string[] $managerParameters ordered list of container parameters that may
42
- * provide the name of the manager to register the mappings for. The first non-empty name
43
- * is used, the others skipped.
38
+ * @param Definition|Reference $driver The driver to use.
39
+ * @param array $namespaces List of namespaces this driver should handle.
40
+ * @param string[] $managerParameters Ordered list of container parameters that may
41
+ * provide the name of the manager to register
42
+ * the mappings for. The first non-empty name
43
+ * is used, the others skipped.
44
44
* @param bool $enabledParameter if specified, the compiler pass only executes
45
- * if this parameter exists in the service container.
45
+ * if this parameter exists in the service container.
46
46
*/
47
47
public function __construct ($ driver , $ namespaces , array $ managerParameters , $ enabledParameter = false )
48
48
{
@@ -97,14 +97,14 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
97
97
/**
98
98
* Create a mapping with the bundle namespace aware SymfonyFileLocator.
99
99
*
100
- * @param array $mappings Hashmap of directory path to namespace
101
- * @param string[] $managerParameters List of parameters that could tell which object manager name
102
- * your bundle uses. This compiler pass will automatically
103
- * append the parameter name for the default entity manager
104
- * to this list.
100
+ * @param array $mappings Hashmap of directory path to namespace
101
+ * @param string[] $managerParameters List of parameters that could tell which object manager name
102
+ * your bundle uses. This compiler pass will automatically
103
+ * append the parameter name for the default entity manager
104
+ * to this list.
105
105
* @param boolean|string $enabledParameter Service container parameter that must be present to
106
- * enable the mapping. Set to false to not do any check,
107
- * optional.
106
+ * enable the mapping. Set to false to not do any check,
107
+ * optional.
108
108
*/
109
109
public static function createXmlMappingDriver (array $ mappings , array $ managerParameters = array (), $ enabledParameter = false )
110
110
{
0 commit comments