PhpSpec\ServiceContainer::setParam PHP Method

setParam() public method

Sets a param in the container
public setParam ( string $id, mixed $value )
$id string
$value mixed
    public function setParam($id, $value);

Usage Example

 /**
  * @param ServiceContainer $container
  */
 public function load(ServiceContainer $container)
 {
     $container->setShared('code_generator.generators.specification', function (ServiceContainer $c) {
         return new ClassNotationSpecificationGenerator($c->get('console.io'), $c->get('code_generator.templates'));
     });
     $container->setParam('code_generator.templates.paths', array(rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '.phpspec'));
 }
All Usage Examples Of PhpSpec\ServiceContainer::setParam