with_custom_parameters() public method

Set custom parameters to inject into the container.
public with_custom_parameters ( array $custom_parameters )
$custom_parameters array
Beispiel #1
0
 public function test_with_custom_parameters()
 {
     $this->builder->with_custom_parameters(array('my_parameter' => true));
     $container = $this->builder->get_container();
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerBuilder', $container);
     $this->assertTrue($container->hasParameter('my_parameter'));
 }