Convert variable names to camel case
[MAILPOET-1796]
This commit is contained in:
@ -14,17 +14,17 @@ class AnnotationReaderProvider {
|
||||
public function __construct() {
|
||||
// register annotation reader if doctrine/annotations package is installed
|
||||
// (i.e. in dev environment, on production metadata is dumped in the build)
|
||||
$read_annotations = class_exists(CachedReader::class) && class_exists(AnnotationReader::class);
|
||||
if ($read_annotations) {
|
||||
$readAnnotations = class_exists(CachedReader::class) && class_exists(AnnotationReader::class);
|
||||
if ($readAnnotations) {
|
||||
// autoload all annotation classes using registered loaders (Composer)
|
||||
// (needed for Symfony\Validator constraint annotations to be loaded)
|
||||
AnnotationRegistry::registerLoader('class_exists');
|
||||
$this->annotation_reader = new CachedReader(new AnnotationReader(), new ArrayCache());
|
||||
$this->annotationReader = new CachedReader(new AnnotationReader(), new ArrayCache());
|
||||
}
|
||||
}
|
||||
|
||||
/** @return CachedReader|null */
|
||||
public function getAnnotationReader() {
|
||||
return $this->annotation_reader;
|
||||
return $this->annotationReader;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user