public function engine($engineIdent = null)
    {
        if ($engineIdent === null) {
            $engineIdent = $this->defaultEngine();
        }
        if (!is_string($engineIdent)) {
            throw new InvalidArgumentException(
                'Invalid engine identifier (must be a string)'
            );
        }

        if (!isset($this->engines[$engineIdent])) {
            throw new InvalidArgumentException(
                sprintf('No configured engines matching "%s"', $engineIdent)
            );
        }
        return $this->engines[$engineIdent];
    }
public function engine($engineIdent = null)
    {
        if ($engineIdent === null) {
            $engineIdent = $this->defaultEngine();
        }
        if (!is_string($engineIdent)) {
            throw new InvalidArgumentException(
                'Invalid engine identifier (must be a string)'
            );
        }

        if (!isset($this->engines[$engineIdent])) {
            throw new InvalidArgumentException(
                sprintf('No configured engines matching "%s"', $engineIdent)
            );
        }
        return $this->engines[$engineIdent];
    }
public function engine ( $ engineIdent = null ) { if ( $ engineIdent === null ) { $ engineIdent = $ this -> defaultEngine ( ) ; } if ( ! is_string ( $ engineIdent ) ) { throw new InvalidArgumentException ( 'Invalid engine identifier (must be a string)' ) ; } if ( ! isset ( $ this -> engines [ $ engineIdent ] ) ) { throw new InvalidArgumentException ( sprintf ( 'No configured engines matching "%s"' , $ engineIdent ) ) ; } return $ this -> engines [ $ engineIdent ] ; }
Get an engine's configuration.

@param string|null $engineIdent The engine identifier to get the configuration of.
@throws InvalidArgumentException If the engine ident is not a string or does not match any engines.
@return array
Get an engine s configuration .