public function dump(\Twig_Environment $env, $context, ...$vars)
    {
        if (!$env->isDebug()) {
            return null;
        }

        if (!$vars) {
            $vars = [];
            foreach ($context as $key => $value) {
                if (!$value instanceof \Twig_Template) {
                    $vars[$key] = $value;
                }
            }
        }

        ob_start();

        VarDumper::dump($vars);

        echo ob_get_clean();
    }
public function dump(\Twig_Environment $env, $context, ...$vars)
    {
        if (!$env->isDebug()) {
            return null;
        }

        if (!$vars) {
            $vars = [];
            foreach ($context as $key => $value) {
                if (!$value instanceof \Twig_Template) {
                    $vars[$key] = $value;
                }
            }
        }

        ob_start();

        VarDumper::dump($vars);

        echo ob_get_clean();
    }
public function dump ( \ Twig_Environment $ env , $ context , ... $ vars ) { if ( ! $ env -> isDebug ( ) ) { return null ; } if ( ! $ vars ) { $ vars = [ ] ; foreach ( $ context as $ key => $ value ) { if ( ! $ value instanceof \ Twig_Template ) { $ vars [ $ key ] = $ value ; } } } ob_start ( ) ; VarDumper :: dump ( $ vars ) ; echo ob_get_clean ( ) ; }
Override dump version of Symfony's VarDumper component

@param \Twig_Environment $env
@param array             $context
@param mixed             ...$vars

@return string|null
Override dump version of Symfony s VarDumper component