Newscoop\NewscoopBundle\Twig\NewscoopExtension::__construct PHP Method

__construct() public method

Constructor
public __construct ( ContainerInterface $container )
$container ContainerInterface
    public function __construct($container)
    {
        $this->container = $container;
        if ($this->container->isScopeActive('request')) {
            $this->request = $this->container->get('request');
        }
    }