Beispiel #1
0
 /**
  * initialize configurator
  *
  * @param ContainerConfigurator $configurator
  *
  * @return mixed
  */
 public function initializeConfigurator(ContainerConfigurator $configurator)
 {
     $configurator->addAwareDefinition(new AwareDefinition('\\ThinFrame\\Events\\DispatcherAwareInterface', 'setDispatcher', 'thinframe.events.dispatcher'));
     $configurator->addAwareDefinition(new AwareDefinition('\\ThinFrame\\Events\\DispatcherAwareTrait', 'setDispatcher', 'thinframe.events.dispatcher'));
     $configurator->addCompilerPass(new EventsCompilerPass());
 }
 /**
  * Initialize configurator
  *
  * @param ContainerConfigurator $configurator
  *
  * @return mixed
  */
 public function initializeConfigurator(ContainerConfigurator $configurator)
 {
     $configurator->addCompilerPass(new TaggedHandlerCompilerPass('thinframe.annotations.processor'));
     $configurator->addAwareDefinition(new AwareDefinition('\\ThinFrame\\Annotations\\DependencyInjection\\ProcessorAwareTrait', 'setProcessor', 'thinframe.annotations.processor'));
 }
Beispiel #3
0
 /**
  * Initialize configurator
  *
  * @param ContainerConfigurator $configurator
  *
  * @return mixed
  */
 public function initializeConfigurator(ContainerConfigurator $configurator)
 {
     $configurator->addCompilerPass(new AopCompilerPass());
 }
 /**
  * initialize configurator
  *
  * @param ContainerConfigurator $configurator
  *
  * @return mixed
  */
 public function initializeConfigurator(ContainerConfigurator $configurator)
 {
     $configurator->addCompilerPass(new CommandsCompilerPass());
     $configurator->addAwareDefinition(new AwareDefinition('\\ThinFrame\\CommandLine\\DependencyInjection\\OutputDriverAwareTrait', 'setOutputDriver', 'thinframe.cli.output_driver'));
     $configurator->addAwareDefinition(new AwareDefinition('\\ThinFrame\\CommandLine\\DependencyInjection\\InputDriverAwareTrait', 'setInputDriver', 'thinframe.cli.input_driver'));
 }