protected function loadEnvFile($file) {
    list($name, ,) = explode('.', $file->name);
    $this->environments[$name] = $this->extractEnv($file->filename);
    $this->environments[$name]['filename'] = $this->parseFilename($file->filename);
  }
protected function loadEnvFile($file) {
    list($name, ,) = explode('.', $file->name);
    $this->environments[$name] = $this->extractEnv($file->filename);
    $this->environments[$name]['filename'] = $this->parseFilename($file->filename);
  }
protected function loadEnvFile ( $ file ) { list ( $ name , , ) = explode ( '.' , $ file -> name ) ; $ this -> environments [ $ name ] = $ this -> extractEnv ( $ file -> filename ) ; $ this -> environments [ $ name ] [ 'filename' ] = $ this -> parseFilename ( $ file -> filename ) ; }
Extract the contents of an environment definition file.

@param object $file
A file object.
Extract the contents of an environment definition file .