Symfony\Bundle\FrameworkBundle\Client::getContainer PHP Method

getContainer() public method

Returns the container.
public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface
    public function getContainer()
    {
        return $this->kernel->getContainer();
    }

Usage Example

 public function setUp()
 {
     $this->client = static::createClient();
     $this->client->followRedirects();
     $this->container = $this->client->getContainer();
     $this->loadFixtures($this->getFixtures());
 }
All Usage Examples Of Symfony\Bundle\FrameworkBundle\Client::getContainer