src/Settings.php
public function load($path = self::DEFAULT_FILENAME)
	{
		$file = new File($path);

		if (($data = json_decode($file->read(), true)) === null) {
			throw new \UnexpectedValueException('Invalid JSON.');
		}

		$this->data = (array) $data;

		return $this;
	}
public function load($path = self::DEFAULT_FILENAME)
	{
		$file = new File($path);

		if (($data = json_decode($file->read(), true)) === null) {
			throw new \UnexpectedValueException('Invalid JSON.');
		}

		$this->data = (array) $data;

		return $this;
	}
public function load ( $ path = self :: DEFAULT_FILENAME ) { $ file = new File ( $ path ) ; if ( ( $ data = json_decode ( $ file -> read ( ) , true ) ) === null ) { throw new \ UnexpectedValueException ( 'Invalid JSON.' ) ; } $ this -> data = ( array ) $ data ; return $ this ; }
Load the settings file from the given location.

@param $path = self::DEFAULT_FILENAME
@return $this
@throws FileException on failure.
@throws \UnexpectedValueException on failure.
Load the settings file from the given location .