public function runComponents()
    {
        foreach ($this->components as $component) {
            if ($event = $component->fireEvent('component.beforeRun', [], true)) {
                return $event;
            }

            if ($result = $component->onRun()) {
                return $result;
            }

            if ($event = $component->fireEvent('component.run', [], true)) {
                return $event;
            }
        }
    }
public function runComponents()
    {
        foreach ($this->components as $component) {
            if ($event = $component->fireEvent('component.beforeRun', [], true)) {
                return $event;
            }

            if ($result = $component->onRun()) {
                return $result;
            }

            if ($event = $component->fireEvent('component.run', [], true)) {
                return $event;
            }
        }
    }
public function runComponents ( ) { foreach ( $ this -> components as $ component ) { if ( $ event = $ component -> fireEvent ( 'component.beforeRun' , [ ] , true ) ) { return $ event ; } if ( $ result = $ component -> onRun ( ) ) { return $ result ; } if ( $ event = $ component -> fireEvent ( 'component.run' , [ ] , true ) ) { return $ event ; } } }
Runs components defined in the settings
Process halts if a component returns a value
@return void
Runs components defined in the settings Process halts if a component returns a value