@@ 96-119 (lines=24) @@ | ||
93 | /** |
|
94 | * @return AnnotationDriver |
|
95 | */ |
|
96 | protected function createDriver() |
|
97 | { |
|
98 | $reader = new CachedReader( |
|
99 | new AnnotationReader(), |
|
100 | new FilesystemCache($this->cacheDirectory), |
|
101 | $debug = true |
|
102 | ); |
|
103 | ||
104 | AnnotationRegistry::registerFile(__DIR__.'/../Fixtures/Annotations/AggregateRoot.php'); |
|
105 | AnnotationRegistry::registerFile(__DIR__.'/../Fixtures/Annotations/Entity.php'); |
|
106 | AnnotationRegistry::registerFile(__DIR__.'/../Fixtures/Annotations/Field.php'); |
|
107 | AnnotationRegistry::registerFile(__DIR__.'/../Fixtures/Annotations/Id.php'); |
|
108 | ||
109 | $driver = new AnnotationDriver($reader, [__DIR__.'/../Fixtures']); |
|
110 | $driver->addExcludePaths([ |
|
111 | __DIR__.'/../Fixtures/Annotations', |
|
112 | __DIR__.'/../Fixtures/Driver', |
|
113 | __DIR__.'/../Fixtures/mapping', |
|
114 | __DIR__.'/../Fixtures/mapping-two', |
|
115 | ]); |
|
116 | $driver->setFileExtension('.php'); |
|
117 | ||
118 | return $driver; |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @return FileCache |
@@ 90-113 (lines=24) @@ | ||
87 | /** |
|
88 | * @return AnnotationDriver |
|
89 | */ |
|
90 | protected function createDriver() |
|
91 | { |
|
92 | $reader = new CachedReader( |
|
93 | new AnnotationReader(), |
|
94 | new FilesystemCache($this->cacheDirectory), |
|
95 | $debug = true |
|
96 | ); |
|
97 | ||
98 | AnnotationRegistry::registerFile(__DIR__.'/../../Fixtures/Annotations/AggregateRoot.php'); |
|
99 | AnnotationRegistry::registerFile(__DIR__.'/../../Fixtures/Annotations/Entity.php'); |
|
100 | AnnotationRegistry::registerFile(__DIR__.'/../../Fixtures/Annotations/Field.php'); |
|
101 | AnnotationRegistry::registerFile(__DIR__.'/../../Fixtures/Annotations/Id.php'); |
|
102 | ||
103 | $driver = new AnnotationDriver($reader, [__DIR__.'/../../Fixtures']); |
|
104 | $driver->addExcludePaths([ |
|
105 | __DIR__.'/../../Fixtures/Annotations', |
|
106 | __DIR__.'/../../Fixtures/Driver', |
|
107 | __DIR__.'/../../Fixtures/mapping', |
|
108 | __DIR__.'/../../Fixtures/mapping-two', |
|
109 | ]); |
|
110 | $driver->setFileExtension('.php'); |
|
111 | ||
112 | return $driver; |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * @return AnnotationDriver |