Pagekit\Intl\IntlModule::parse PHP Method

parse() protected method

protected parse ( string $file ) : array | null
$file string
return array | null
    protected function parse($file)
    {
        static $data = [];
        if (!isset($data[$file])) {
            $data[$file] = ($file = App::locator()->get($file)) ? json_decode(file_get_contents($file), true) : null;
        }
        return $data[$file];
    }