Exemplo n.º 1
0
 /**
  * Process the container
  *
  * @param \Symfony\Component\DepdencyInjection\ContainerBuilder $container
  * @return void
  * @author Dan Cox
  */
 public function process(ContainerBuilder $container)
 {
     $helper = new CompilerHelper($container);
     $helper->updateDefinitionClass('database', 'Wasp\\Database\\DatabaseMockery');
     $helper->updateDefinitionArguments('database', [new Reference('service_container')]);
 }
Exemplo n.º 2
0
 /**
  * Process the compiler
  *
  * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
  * @return void
  * @author Dan Cox
  */
 public function process(ContainerBuilder $container)
 {
     $helper = new CompilerHelper($container);
     $helper->createDefinition('session.storage', new MockFileSessionStorage());
     $helper->updateDefinitionArguments('session', [new Reference('session.storage')]);
 }