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); }
/** * @param string $resource */ public function load($resource) { $this->config->setParameters($this->loader->load($resource)); }