Newscoop\NewscoopBundle\Twig\NewscoopExtension::__construct PHP 메소드

__construct() 공개 메소드

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');
        }
    }