Gets a generator.
public getGenerator ( string $name ) : Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface | ||
$name | string | The generator name |
return | Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface |
/** * @expectedException \RuntimeException */ public function testGeneratorNotFound() { $generator = new PaginationGenerator(); $gm = new GeneratorManager(); $gm->addGenerator('paginator', $generator); $gm->getGenerator('paginator-1'); }