public function lazy($source, array $vars = array())
    {
        if (is_string($source)) {
            $source = new File("{$source}");
            $source = $source->isRelative()
                ? $this->file($source)
                : $source;
        }
        return new Lazy($source, array_merge(['app' => $this], $vars));
    }
public function lazy($source, array $vars = array())
    {
        if (is_string($source)) {
            $source = new File("{$source}");
            $source = $source->isRelative()
                ? $this->file($source)
                : $source;
        }
        return new Lazy($source, array_merge(['app' => $this], $vars));
    }
public function lazy ( $ source , array $ vars = array ( ) ) { if ( is_string ( $ source ) ) { $ source = new File ( "{$source}" ) ; $ source = $ source -> isRelative ( ) ? $ this -> file ( $ source ) : $ source ; } return new Lazy ( $ source , array_merge ( [ 'app' => $ this ] , $ vars ) ) ; }
Lazy load a file without leaking variables, include app object in vars.
@param  mixed   $file
@param  array   $vars
@return mixed
Lazy load a file without leaking variables include app object in vars .