/** * Load the contents of a file into the registry * * @param string $file Path to file to load * @param string $format Format of the file [optional: defaults to JSON] * @param array $options Options used by the formatter * * @return static Return this object to support chaining. * * @since 2.0 */ public function loadFile($file, $format = Format::JSON, $options = array()) { $this->load(RegistryHelper::loadFile($file, $format, $options), false); return $this; }