Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface::all PHP Method

all() public method

Gets the service container parameters.
public all ( ) : array
return array An array of parameters
    function all();

Usage Example

 protected function setUp()
 {
     $this->method = new \ReflectionMethod(self::$launcher, 'overwriteParams');
     $this->method->setAccessible(true);
     $property = new \ReflectionProperty(self::$launcher, 'container');
     $property->setAccessible(true);
     /** @var ContainerBuilder $container */
     $container = $property->getValue(self::$launcher);
     $this->params = $container->getParameterBag();
     $this->assertInternalType('array', $this->params->all());
     $this->assertEmpty($this->params->all());
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface::all