public function getPath($name, $full_path = false)
    {
        $config = $this->getContainer()->get('config');
        $path = $config->getRegistry()->getStackEntry($name, null, 'paths');
        if (file_exists($path) && is_dir($path)) {
            $path = DirectoryHelper::slashDirname($path);
        }
        if (true===$full_path) {
            return $this->getAbsolutePath($path);
        }
        return $path;
    }
public function getPath($name, $full_path = false)
    {
        $config = $this->getContainer()->get('config');
        $path = $config->getRegistry()->getStackEntry($name, null, 'paths');
        if (file_exists($path) && is_dir($path)) {
            $path = DirectoryHelper::slashDirname($path);
        }
        if (true===$full_path) {
            return $this->getAbsolutePath($path);
        }
        return $path;
    }
public function getPath ( $ name , $ full_path = false ) { $ config = $ this -> getContainer ( ) -> get ( 'config' ) ; $ path = $ config -> getRegistry ( ) -> getStackEntry ( $ name , null , 'paths' ) ; if ( file_exists ( $ path ) && is_dir ( $ path ) ) { $ path = DirectoryHelper :: slashDirname ( $ path ) ; } if ( true === $ full_path ) { return $ this -> getAbsolutePath ( $ path ) ; } return $ path ; }
Get a path value

@param   string    $name       The path reference
@param   bool      $full_path  Must return an absolute path or not (default)
@return  string|null
Get a path value