Laravel\Envoy\Console\TasksCommand::loadTaskContainer PHP Method

loadTaskContainer() protected method

Load the task container instance with the Envoy file.
protected loadTaskContainer ( ) : TaskContainer
return Laravel\Envoy\TaskContainer
    protected function loadTaskContainer()
    {
        if (!file_exists($envoyFile = getcwd() . '/Envoy.blade.php')) {
            echo "Envoy.blade.php not found.\n";
            exit(1);
        }
        with($container = new TaskContainer())->load($envoyFile, new Compiler());
        return $container;
    }