private function tryLoadFile(FileLoaderInterface $loader, string $path)
 {
     try {
         return $loader->load($path);
     } catch (UnsupportedFileTypeException $e) {
     }
 }
 public function __construct(FileLoaderInterface $fileLoader)
 {
     $this->json = $fileLoader->load('viewManifest.json', true);
 }
Esempio n. 3
0
 /**
  * @param string $resource
  */
 public function load($resource)
 {
     $this->config->setParameters($this->loader->load($resource));
 }