Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function getAllClassNames()
 {
     if ($this->classCache === null) {
         $this->initialize();
     }
     if (!$this->classCache) {
         return (array) $this->locator->getAllClassNames($this->globalBasename);
     }
     return array_merge(array_keys($this->classCache), (array) $this->locator->getAllClassNames($this->globalBasename));
 }
Exemple #2
0
 /**
  * Gets the names of all mapped classes known to this driver.
  *
  * @return array The names of all mapped classes known to this driver.
  */
 public function getAllClassNames()
 {
     if ($this->classCache === null) {
         $this->initialize();
     }
     $classNames = (array) $this->locator->getAllClassNames($this->globalBasename);
     if ($this->classCache) {
         $classNames = array_merge(array_keys($this->classCache), $classNames);
     }
     return $classNames;
 }