Symfony\Bridge\Twig\Form\TwigRendererEngine::__construct PHP Method

__construct() public method

public __construct ( array $defaultThemes = [], Twig_Environment $environment = null )
$defaultThemes array
$environment Twig_Environment
    public function __construct(array $defaultThemes = array(), \Twig_Environment $environment = null)
    {
        if (null === $environment) {
            @trigger_error(sprintf('Not passing a Twig Environment as the second argument for "%s" constructor is deprecated since version 3.2 and won\'t be possible in 4.0.', static::class), E_USER_DEPRECATED);
        }
        parent::__construct($defaultThemes);
        $this->environment = $environment;
    }