Skip to main content

module_of_task

Function module_of_task 

Source
pub fn module_of_task<'a>(
    app: &'a AppSnapshot,
    task: &Task,
) -> Option<&'a Module>
Expand description

The module a scheduled task belongs to. The module its module tag names wins, compared without case. Without the tag, or when the tag names no module of the app, it is the module of its class, or the module that declares the command of php artisan <name>. Then a task with a description, a closure or a shell command belongs to none.