|
@@ 69-75 (lines=7) @@
|
| 66 |
|
* |
| 67 |
|
* @return Configuration |
| 68 |
|
*/ |
| 69 |
|
public static function createAnnotationMetadataConfiguration(array $paths, $isDevMode = false, $proxyDir = null, Cache $cache = null, $useSimpleAnnotationReader = true) |
| 70 |
|
{ |
| 71 |
|
$config = self::createConfiguration($isDevMode, $proxyDir, $cache); |
| 72 |
|
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver($paths, $useSimpleAnnotationReader)); |
| 73 |
|
|
| 74 |
|
return $config; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Creates a configuration with a xml metadata driver. |
|
@@ 87-93 (lines=7) @@
|
| 84 |
|
* |
| 85 |
|
* @return Configuration |
| 86 |
|
*/ |
| 87 |
|
public static function createXMLMetadataConfiguration(array $paths, $isDevMode = false, $proxyDir = null, Cache $cache = null) |
| 88 |
|
{ |
| 89 |
|
$config = self::createConfiguration($isDevMode, $proxyDir, $cache); |
| 90 |
|
$config->setMetadataDriverImpl(new XmlDriver($paths)); |
| 91 |
|
|
| 92 |
|
return $config; |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
/** |
| 96 |
|
* Creates a configuration with a yaml metadata driver. |
|
@@ 105-111 (lines=7) @@
|
| 102 |
|
* |
| 103 |
|
* @return Configuration |
| 104 |
|
*/ |
| 105 |
|
public static function createYAMLMetadataConfiguration(array $paths, $isDevMode = false, $proxyDir = null, Cache $cache = null) |
| 106 |
|
{ |
| 107 |
|
$config = self::createConfiguration($isDevMode, $proxyDir, $cache); |
| 108 |
|
$config->setMetadataDriverImpl(new YamlDriver($paths)); |
| 109 |
|
|
| 110 |
|
return $config; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* Creates a configuration without a metadata driver. |