Since: 1.0
Author: Benjamin Eberlei (kontakt@beberlei.de)
Author: Jonathan H. Wage (jonwage@gmail.com)
Author: Roman Borschel (roman@code-factory.org)
Inheritance: extends Doctrine\Common\Persistence\Mapping\Driver\FileDriver
Ejemplo n.º 1
0
 public function getElement($className)
 {
     if (null === $this->classCache) {
         $this->initialize();
     }
     if (!isset($this->classCache[$className])) {
         $this->classCache[$className] = parent::getElement($className);
     }
     return $this->classCache[$className];
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($prefixes, $fileExtension = self::DEFAULT_FILE_EXTENSION)
 {
     $locator = new SymfonyFileLocator((array) $prefixes, $fileExtension);
     parent::__construct($locator, $fileExtension);
 }