Symfony\Component\DependencyInjection\ContainerInterface::setParameter PHP Method

setParameter() public method

Sets a parameter.
public setParameter ( string $name, mixed $value )
$name string The parameter name
$value mixed The parameter value
    function setParameter($name, $value);

Usage Example

Ejemplo n.º 1
0
 protected function setUp()
 {
     $this->container = new Container();
     $this->container->setParameter('payum.template.layout', 'theLayout');
     $this->container->setParameter('payum.template.obtain_credit_card', 'theObtainCreditCardTemplate');
     $this->container->set('payum.http_client', $this->getMock(HttpClientInterface::class));
     $this->container->set('twig', $this->getMock(\Twig_Environment::class, [], [], '', false));
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ContainerInterface::setParameter