Laravel\Envoy\TaskContainer::import PHP Method

import() public method

Import the given file into the container.
public import ( string $file, array $data = [] ) : void
$file string
$data array
return void
    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);
    }