1
0
mirror of synced 2025-02-20 22:23:14 +03:00

[2.0] DDC-318 - Fix successive calls to AnnotationDriver::getAllClassNames()

This commit is contained in:
beberlei 2010-02-11 22:47:59 +00:00
parent 6bfbab9f7d
commit 6271245831

View File

@ -62,6 +62,11 @@ class AnnotationDriver implements Driver
* @var string
*/
protected $_fileExtension = '.php';
/**
* @param array
*/
protected $_classNames = null;
/**
* Initializes a new AnnotationDriver that uses the given AnnotationReader for reading
@ -407,6 +412,10 @@ class AnnotationDriver implements Driver
*/
public function getAllClassNames()
{
if ($this->_classNames !== null) {
return $this->_classNames;
}
$classes = array();
if ($this->_paths) {
@ -439,6 +448,8 @@ class AnnotationDriver implements Driver
}
}
}
$this->_classNames = $classes;
return $classes;
}