Created
September 21, 2014 18:59
-
-
Save jsifalda/88cf2771d7f005d1f563 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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