1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

Adding parameter to allow switching annotation reader implementation

This commit is contained in:
Marco Pivetta 2012-07-08 17:17:32 +02:00
parent b67140f73c
commit 245d906ebf

View file

@ -111,12 +111,13 @@ class Setup
* @param boolean $isDevMode * @param boolean $isDevMode
* @param string $proxyDir * @param string $proxyDir
* @param Cache $cache * @param Cache $cache
* @param bool $useSimpleAnnotationReader
* @return Configuration * @return Configuration
*/ */
static public function createAnnotationMetadataConfiguration(array $paths, $isDevMode = false, $proxyDir = null, Cache $cache = null) static public function createAnnotationMetadataConfiguration(array $paths, $isDevMode = false, $proxyDir = null, Cache $cache = null, $useSimpleAnnotationReader = false)
{ {
$config = self::createConfiguration($isDevMode, $proxyDir, $cache); $config = self::createConfiguration($isDevMode, $proxyDir, $cache);
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver($paths)); $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver($paths, $useSimpleAnnotationReader));
return $config; return $config;
} }