src/Files/ConfigFile.php
public function load($file)
	{
		if(!$this->fs->exists($file))
		{
			throw new Exceptions\FileNotExists($file);
		}

		$this->file = $file;
		$this->info->load($file);
		$this->extension = $this->info->extension;
		$this->directory = $this->info->directory;
		$this->filename = $this->info->filename;

		$this->extracter->load($file, $this->extension)
						->extract();

		$this->params = $this->extracter->params();
	}
public function load($file)
	{
		if(!$this->fs->exists($file))
		{
			throw new Exceptions\FileNotExists($file);
		}

		$this->file = $file;
		$this->info->load($file);
		$this->extension = $this->info->extension;
		$this->directory = $this->info->directory;
		$this->filename = $this->info->filename;

		$this->extracter->load($file, $this->extension)
						->extract();

		$this->params = $this->extracter->params();
	}
public function load ( $ file ) { if ( ! $ this -> fs -> exists ( $ file ) ) { throw new Exceptions \ FileNotExists ( $ file ) ; } $ this -> file = $ file ; $ this -> info -> load ( $ file ) ; $ this -> extension = $ this -> info -> extension ; $ this -> directory = $ this -> info -> directory ; $ this -> filename = $ this -> info -> filename ; $ this -> extracter -> load ( $ file , $ this -> extension ) -> extract ( ) ; $ this -> params = $ this -> extracter -> params ( ) ; }
Loads the file and its details

@param String $file
@return ConfigFile
@author Dan Cox

@throws Exceptions\FileNotExists
Loads the file and its details