src/Task/TaskRunner.php
private function findTasks()
    {
        if ($this->init)
            return;

        $resolver = $this->app->moduleManager;
        $modules = $resolver->getModules();
        foreach ($modules as $mod)
            $mod->registerTasks($this);

        // Provide a way to register tasks using a hook
        Hook::execute("Wedeto.Application.Task.TaskRunner.findTasks", ['taskrunner' => $this]);
        $this->init = true;
    }
private function findTasks()
    {
        if ($this->init)
            return;

        $resolver = $this->app->moduleManager;
        $modules = $resolver->getModules();
        foreach ($modules as $mod)
            $mod->registerTasks($this);

        // Provide a way to register tasks using a hook
        Hook::execute("Wedeto.Application.Task.TaskRunner.findTasks", ['taskrunner' => $this]);
        $this->init = true;
    }
private function findTasks ( ) { if ( $ this -> init ) return ; $ resolver = $ this -> app -> moduleManager ; $ modules = $ resolver -> getModules ( ) ; foreach ( $ modules as $ mod ) $ mod -> registerTasks ( $ this ) ; // Provide a way to register tasks using a hook Hook :: execute ( "Wedeto.Application.Task.TaskRunner.findTasks" , [ 'taskrunner' => $ this ] ) ; $ this -> init = true ; }
Find tasks in all registered modules. This method calls registerTasks on
all modules that have been registered, giving them the opportunity to register
their tasks.
Find tasks in all registered modules . This method calls registerTasks on all modules that have been registered giving them the opportunity to register their tasks .