ok
Direktori : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Runner/ |
Current File : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Runner/TaskRunner.php |
<?php declare(strict_types=1); namespace GrumPHP\Runner; use GrumPHP\Collection\TaskResultCollection; use GrumPHP\Collection\TasksCollection; class TaskRunner { /** * @var TasksCollection */ private $tasks; /** * @var MiddlewareStack */ private $middleware; public function __construct(TasksCollection $tasks, MiddlewareStack $middleware) { $this->tasks = $tasks; $this->middleware = $middleware; } public function run(TaskRunnerContext $runnerContext): TaskResultCollection { return $this->middleware->handle( $runnerContext->withTasks($this->tasks) ); } }