Puli\Manager\Json\JsonStorage::loadFile PHP 메소드

loadFile() 개인적인 메소드

private loadFile ( $path, $className, array $options = [] )
$options array
    private function loadFile($path, $className, array $options = array())
    {
        $json = $this->storage->read($path);
        $jsonData = $this->decode($json, $path);
        $options['path'] = $path;
        try {
            return $this->converterProvider->getJsonConverter($className)->fromJson($jsonData, $options);
        } catch (ConversionFailedException $e) {
            throw new InvalidConfigException(sprintf('The JSON in %s could not be converted: %s', $path, $e->getMessage()), 0, $e);
        }
    }