public function run()
    {
        $prefix = $this->notifyPrefix;
        
        $this->addNotification($prefix.'_start_run_tasks');
        
        foreach ($this->runSteps as $actionName => $stepInfos) {
            $context = null;
            if ($stepInfos->context !== null) {
                $context = $stepInfos->context;
            }
            
            if ($stepInfos->callback === null) {
                $this->addNotification($prefix.'_exec_'.$actionName, $context);
                continue;
            }
            
            $this->addNotification($prefix.'_run_'.$actionName, $context);

            if (is_callable($stepInfos->callback)) {
                $callback = $stepInfos->callback;
                $callback();
            }

            $this->addNotification($prefix.'_done_'.$actionName, $context);
        }
        
        $this->addNotification($prefix.'_end_run_tasks');
    }
public function run()
    {
        $prefix = $this->notifyPrefix;
        
        $this->addNotification($prefix.'_start_run_tasks');
        
        foreach ($this->runSteps as $actionName => $stepInfos) {
            $context = null;
            if ($stepInfos->context !== null) {
                $context = $stepInfos->context;
            }
            
            if ($stepInfos->callback === null) {
                $this->addNotification($prefix.'_exec_'.$actionName, $context);
                continue;
            }
            
            $this->addNotification($prefix.'_run_'.$actionName, $context);

            if (is_callable($stepInfos->callback)) {
                $callback = $stepInfos->callback;
                $callback();
            }

            $this->addNotification($prefix.'_done_'.$actionName, $context);
        }
        
        $this->addNotification($prefix.'_end_run_tasks');
    }
public function run ( ) { $ prefix = $ this -> notifyPrefix ; $ this -> addNotification ( $ prefix . '_start_run_tasks' ) ; foreach ( $ this -> runSteps as $ actionName => $ stepInfos ) { $ context = null ; if ( $ stepInfos -> context !== null ) { $ context = $ stepInfos -> context ; } if ( $ stepInfos -> callback === null ) { $ this -> addNotification ( $ prefix . '_exec_' . $ actionName , $ context ) ; continue ; } $ this -> addNotification ( $ prefix . '_run_' . $ actionName , $ context ) ; if ( is_callable ( $ stepInfos -> callback ) ) { $ callback = $ stepInfos -> callback ; $ callback ( ) ; } $ this -> addNotification ( $ prefix . '_done_' . $ actionName , $ context ) ; } $ this -> addNotification ( $ prefix . '_end_run_tasks' ) ; }
Run all steps declared and notify for each step
Call the callback if declared for each step

@return void
Run all steps declared and notify for each step Call the callback if declared for each step