src/Rocketeer/Services/Builders/Modules/TasksBuilder.php
protected function getTaskHandle($task)
    {
        // Check the handle if possible
        if (!is_string($task)) {
            return;
        }

        // Compute the handle and check it's bound
        $handle = 'rocketeer.tasks.'.Str::snake(class_basename($task), '-');
        $task = $this->container->has($handle) ? $handle : null;

        return $task;
    }
protected function getTaskHandle($task)
    {
        // Check the handle if possible
        if (!is_string($task)) {
            return;
        }

        // Compute the handle and check it's bound
        $handle = 'rocketeer.tasks.'.Str::snake(class_basename($task), '-');
        $task = $this->container->has($handle) ? $handle : null;

        return $task;
    }
protected function getTaskHandle ( $ task ) { // Check the handle if possible if ( ! is_string ( $ task ) ) { return ; } // Compute the handle and check it's bound $ handle = 'rocketeer.tasks.' . Str :: snake ( class_basename ( $ task ) , '-' ) ; $ task = $ this -> container -> has ( $ handle ) ? $ handle : null ; return $ task ; }
Get the handle of a task from its name.

@param string|AbstractTask $task

@return string|null
Get the handle of a task from its name .