Skip to content

Instantly share code, notes, and snippets.

@jsifalda
Created September 21, 2014 18:59
Show Gist options
  • Save jsifalda/88cf2771d7f005d1f563 to your computer and use it in GitHub Desktop.
Save jsifalda/88cf2771d7f005d1f563 to your computer and use it in GitHub Desktop.
<?php
class AppExtension extends CompilerExtension
{
public function loadConfiguration()
{
$builder = $this->getContainerBuilder();
$builder->addDefinition('service.routerFactory')
->setClass('Modules\RouterFactory') // YOUR ROUTER FACTORY CLASS
->addTag(Flame\Modules\ModulesExtension::TAG_ROUTER); // DONT FORGET TO ADD THE TAG!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment