Skip to content

Commit eb2029a

Browse files
Add $__taskName so available in @setup (#254)
* Add $__taskName so available in @setup * simplify * wip Co-authored-by: Arwin <arwin@ligon.nl> Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 7aeb161 commit eb2029a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Console/RunCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ protected function loadTaskContainer()
234234
}
235235

236236
with($container = new TaskContainer)->load(
237-
$envoyFile, new Compiler, $this->getOptions()
237+
$envoyFile,
238+
new Compiler,
239+
$this->argument('task'),
240+
array_merge($this->getOptions(), ['__task' => $this->argument('task')])
238241
);
239242

240243
return $container;

0 commit comments

Comments
 (0)