public function getGenerator($name)
    {
        if ($this->hasGenerator($name) === false) {
            throw new \RuntimeException(sprintf('Generator not found: "%s".', $name));
        }

        return $this->generators[$name];
    }
public function getGenerator($name)
    {
        if ($this->hasGenerator($name) === false) {
            throw new \RuntimeException(sprintf('Generator not found: "%s".', $name));
        }

        return $this->generators[$name];
    }
public function getGenerator ( $ name ) { if ( $ this -> hasGenerator ( $ name ) === false ) { throw new \ RuntimeException ( sprintf ( 'Generator not found: "%s".' , $ name ) ) ; } return $ this -> generators [ $ name ] ; }
Gets a generator.

@param string $name The generator name

@return \Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

@throws RuntimeException If the generator is not defined
Gets a generator .