public function getMacro($macro)
{
return array_get($this->macros, $macro);
}
/** * Get the tasks from the container based on user input. * * @param \Laravel\Envoy\TaskContainer $container * @return void */ protected function getTasks($container) { $tasks = [$task = $this->argument('task')]; if ($macro = $container->getMacro($task)) { $tasks = $macro; } return $tasks; }