/** * This method loads the specified file for reading. * * @access public * @static * @param Config\Reader $reader the config reader to use * @param boolean $case_sensitive whether keys are to be case sensitive * @param string $path the path to the value to be returned * @return mixed the resource as a collection */ public static function unmarshal(Config\Reader $reader, $case_sensitive = true, $path = null) { if ($path !== null && !$case_sensitive) { $path = strtolower($path); } return static::useCollections($reader->read($path), Core\Convert::toBoolean($case_sensitive)); }