public function setConfigurationFile($configurationFile)
    {
        $search = [$configurationFile, getcwd() . DIRECTORY_SEPARATOR . $configurationFile];
        $found = array_filter($search, 'file_exists');

        if (count($found) == 0) {
            throw new \RuntimeException("Configuration file specified but does not exist");
        }

        $this->write('configurationFile', $found[0]);

        return $this;
    }
public function setConfigurationFile($configurationFile)
    {
        $search = [$configurationFile, getcwd() . DIRECTORY_SEPARATOR . $configurationFile];
        $found = array_filter($search, 'file_exists');

        if (count($found) == 0) {
            throw new \RuntimeException("Configuration file specified but does not exist");
        }

        $this->write('configurationFile', $found[0]);

        return $this;
    }
public function setConfigurationFile ( $ configurationFile ) { $ search = [ $ configurationFile , getcwd ( ) . DIRECTORY_SEPARATOR . $ configurationFile ] ; $ found = array_filter ( $ search , 'file_exists' ) ; if ( count ( $ found ) == 0 ) { throw new \ RuntimeException ( "Configuration file specified but does not exist" ) ; } $ this -> write ( 'configurationFile' , $ found [ 0 ] ) ; return $ this ; }
Set the path to a Peridot configuration file

@param string $configurationFile
@return $this
Set the path to a Peridot configuration file