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