public function import($file, array $data = [])
    {
        $data = Arr::except($data, [
            '__path', '__dir', '__compiler', '__data', '__serversOnly',
            '__envoyPath', '__container', 'this',
        ]);

        if (($path = $this->resolveImportPath($file)) === false) {
            throw new InvalidArgumentException("Unable to locate file: [{$file}].");
        }

        $this->load($path, new Compiler, $data);
    }
public function import($file, array $data = [])
    {
        $data = Arr::except($data, [
            '__path', '__dir', '__compiler', '__data', '__serversOnly',
            '__envoyPath', '__container', 'this',
        ]);

        if (($path = $this->resolveImportPath($file)) === false) {
            throw new InvalidArgumentException("Unable to locate file: [{$file}].");
        }

        $this->load($path, new Compiler, $data);
    }
public function import ( $ file , array $ data = [ ] ) { $ data = Arr :: except ( $ data , [ '__path' , '__dir' , '__compiler' , '__data' , '__serversOnly' , '__envoyPath' , '__container' , 'this' , ] ) ; if ( ( $ path = $ this -> resolveImportPath ( $ file ) ) === false ) { throw new InvalidArgumentException ( "Unable to locate file: [{$file}]." ) ; } $ this -> load ( $ path , new Compiler , $ data ) ; }
Import the given file into the container.

@param  string  $file
@param  array  $data
@return void
Import the given file into the container .