protected function parse($file)
    {
        $search = '%%CURRENT_DIRECTORY%%';

        $yaml = file_get_contents($file);

        $yaml = str_replace($search, $this->root, $yaml);

        $result = Yaml::parse($yaml);

        $this->commands = $result['paths']['commands'];

        $this->namespace = $result['namespaces']['commands'];

        $this->templates = $result['paths']['templates'];
    }
protected function parse($file)
    {
        $search = '%%CURRENT_DIRECTORY%%';

        $yaml = file_get_contents($file);

        $yaml = str_replace($search, $this->root, $yaml);

        $result = Yaml::parse($yaml);

        $this->commands = $result['paths']['commands'];

        $this->namespace = $result['namespaces']['commands'];

        $this->templates = $result['paths']['templates'];
    }
protected function parse ( $ file ) { $ search = '%%CURRENT_DIRECTORY%%' ; $ yaml = file_get_contents ( $ file ) ; $ yaml = str_replace ( $ search , $ this -> root , $ yaml ) ; $ result = Yaml :: parse ( $ yaml ) ; $ this -> commands = $ result [ 'paths' ] [ 'commands' ] ; $ this -> namespace = $ result [ 'namespaces' ] [ 'commands' ] ; $ this -> templates = $ result [ 'paths' ] [ 'templates' ] ; }
Parses the YAML file.

@param  string $file
@return void
Parses the YAML file .