Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add more config support

  • Loading branch information...
commit e24d4d545be63fc8affef6b53ee4f5953e40309b 1 parent af88b22
Tim Roediger superdweebie authored
2  config/module.config.php
View
@@ -30,6 +30,8 @@
'default_db' => null,
'filters' => array() // array('filterName' => 'BSON\Filter\Class')
+
+ //'classMetadataFactoryName' => 'ClassName'
)
),
15 src/DoctrineMongoODMModule/Options/Configuration.php
View
@@ -110,6 +110,12 @@ class Configuration extends AbstractOptions
/**
*
+ * @var string
+ */
+ protected $classMetadataFactoryName;
+
+ /**
+ *
* @param string $driver
* @return \DoctrineMongoODMModule\Options\Configuration
*/
@@ -312,4 +318,13 @@ public function getLogger()
{
return $this->logger;
}
+
+ public function getClassMetadataFactoryName() {
+ return $this->classMetadataFactoryName;
+ }
+
+ public function setClassMetadataFactoryName($classMetadataFactoryName) {
+ $this->classMetadataFactoryName = (string) $classMetadataFactoryName;
+ }
+
}
2  src/DoctrineMongoODMModule/Service/ConfigurationFactory.php
View
@@ -76,6 +76,8 @@ public function createService(ServiceLocatorInterface $serviceLocator)
// finally, the driver
$config->setMetadataDriverImpl($serviceLocator->get($options->getDriver()));
+ $config->setClassMetadataFactoryName($options->getClassMetadataFactoryName());
+
return $config;
}
Please sign in to comment.
Something went wrong with that request. Please try again.