Keeps an array of extension => class, where the class is lazily resolved out of the framework's service container when needed.
Beispiel #1
0
 protected function getDataFromFile($path)
 {
     if (!is_readable($path)) {
         throw new LoadException("File is not readable: {$path}");
     }
     $loader = $this->loaderFactory->getForPath($path);
     return $loader->load($path);
 }