From 9850ff8b6e0170839ea26997a4cf850433f1c042 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 29 Mar 2011 18:22:32 -0500 Subject: [PATCH] [DoctrineAbstractBundle] Changing incorrect "static-php" references to "staticphp" The end string refers to, for example, the parameter doctrine.orm.metadata.staticphp_class --- .../DependencyInjection/AbstractDoctrineExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/DoctrineAbstractBundle/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bundle/DoctrineAbstractBundle/DependencyInjection/AbstractDoctrineExtension.php index 4da83a2095..a89063941a 100644 --- a/src/Symfony/Bundle/DoctrineAbstractBundle/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bundle/DoctrineAbstractBundle/DependencyInjection/AbstractDoctrineExtension.php @@ -153,7 +153,7 @@ abstract class AbstractDoctrineExtension extends Extension } if (!$bundleConfig['dir']) { - if (in_array($bundleConfig['type'], array('annotation', 'static-php'))) { + if (in_array($bundleConfig['type'], array('annotation', 'staticphp'))) { $bundleConfig['dir'] = $bundleDir.'/'.$this->getMappingObjectDefaultName(); } else { $bundleConfig['dir'] = $bundleDir.'/'.$this->getMappingResourceConfigDirectory(); @@ -236,7 +236,7 @@ abstract class AbstractDoctrineExtension extends Extension if (!in_array($mappingConfig['type'], array('xml', 'yml', 'annotation', 'php', 'staticphp'))) { throw new \InvalidArgumentException("Can only configure 'xml', 'yml', 'annotation', 'php' or ". - "'static-php' through the DoctrineBundle. Use your own bundle to configure other metadata drivers. " . + "'staticphp' through the DoctrineBundle. Use your own bundle to configure other metadata drivers. " . "You can register them by adding a a new driver to the ". "'" . $this->getObjectManagerElementName($objectManagerName . ".metadata_driver")."' service definition." );