Merge remote branch 'weaverryan/staticphp_reference_fix'
* weaverryan/staticphp_reference_fix: [DoctrineAbstractBundle] Changing incorrect "static-php" references to "staticphp"
This commit is contained in:
commit
f5df88244b
@ -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."
|
||||
);
|
||||
|
Reference in New Issue
Block a user