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