public static function checkRequiredActions(Event $event = null)
    {
        /** @var RequiredActionService $service */
        $service = ServiceManager::getServiceManager()->get(self::CONFIG_ID);
        $action = $service->getActionToBePerformed([], $event);
        if ($action !== null) {
            $action->execute([], $event);
        }
    }
public static function checkRequiredActions(Event $event = null)
    {
        /** @var RequiredActionService $service */
        $service = ServiceManager::getServiceManager()->get(self::CONFIG_ID);
        $action = $service->getActionToBePerformed([], $event);
        if ($action !== null) {
            $action->execute([], $event);
        }
    }
public static function checkRequiredActions ( Event $ event = null ) { /** @var RequiredActionService $service */ $ service = ServiceManager :: getServiceManager ( ) -> get ( self :: CONFIG_ID ) ; $ action = $ service -> getActionToBePerformed ( [ ] , $ event ) ; if ( $ action !== null ) { $ action -> execute ( [ ] , $ event ) ; } }
Check if any action must be executed and execute first of them.
@param Event $event
Check if any action must be executed and execute first of them .