public function readConfig($pipe)
    {
        $filename = $this->pipesDir . '/' . $pipe;
        if (file_exists($filename . '.yml')) {
            return Yaml::parse(file_get_contents($filename . '.yml'));
            
        } elseif ($this->allowPhp && file_exists($filename . '.php')) {
            return include ($filename . '.php');
            
        } else {
            throw new Exception('Unknown pipe');
        }
    }
public function readConfig($pipe)
    {
        $filename = $this->pipesDir . '/' . $pipe;
        if (file_exists($filename . '.yml')) {
            return Yaml::parse(file_get_contents($filename . '.yml'));
            
        } elseif ($this->allowPhp && file_exists($filename . '.php')) {
            return include ($filename . '.php');
            
        } else {
            throw new Exception('Unknown pipe');
        }
    }
public function readConfig ( $ pipe ) { $ filename = $ this -> pipesDir . '/' . $ pipe ; if ( file_exists ( $ filename . '.yml' ) ) { return Yaml :: parse ( file_get_contents ( $ filename . '.yml' ) ) ; } elseif ( $ this -> allowPhp && file_exists ( $ filename . '.php' ) ) { return include ( $ filename . '.php' ) ; } else { throw new Exception ( 'Unknown pipe' ) ; } }
Reads pipe config from file.
@param string $pipe pipe name
@return array
@throws Exception
Reads pipe config from file .