public function runServicesFromEvent($serviceEvent, $eventMethodName, AbstractServiceDTO $dto)
    {
        if (false === $this->hasBeenInitialized) {
            return;
        }

        $this->checkServiceEvent($serviceEvent);
        $this->checkServiceEventMethodName($serviceEvent, $eventMethodName);

        $serviceInstances = $this->getServicesFromEvent($serviceEvent);

        if (count($serviceInstances) > 0) {
            foreach ($serviceInstances as $serviceInstance) {
                $serviceInstance->$eventMethodName($dto);
            }

            $serviceInstances[0]->runDelayedCallbacks($dto);
        }
    }
public function runServicesFromEvent($serviceEvent, $eventMethodName, AbstractServiceDTO $dto)
    {
        if (false === $this->hasBeenInitialized) {
            return;
        }

        $this->checkServiceEvent($serviceEvent);
        $this->checkServiceEventMethodName($serviceEvent, $eventMethodName);

        $serviceInstances = $this->getServicesFromEvent($serviceEvent);

        if (count($serviceInstances) > 0) {
            foreach ($serviceInstances as $serviceInstance) {
                $serviceInstance->$eventMethodName($dto);
            }

            $serviceInstances[0]->runDelayedCallbacks($dto);
        }
    }
public function runServicesFromEvent ( $ serviceEvent , $ eventMethodName , AbstractServiceDTO $ dto ) { if ( false === $ this -> hasBeenInitialized ) { return ; } $ this -> checkServiceEvent ( $ serviceEvent ) ; $ this -> checkServiceEventMethodName ( $ serviceEvent , $ eventMethodName ) ; $ serviceInstances = $ this -> getServicesFromEvent ( $ serviceEvent ) ; if ( count ( $ serviceInstances ) > 0 ) { foreach ( $ serviceInstances as $ serviceInstance ) { $ serviceInstance -> $ eventMethodName ( $ dto ) ; } $ serviceInstances [ 0 ] -> runDelayedCallbacks ( $ dto ) ; } }
Will loop on each registered service in this factory, and check if they
use the requested event. If they do, the event is dispatched.

@param string             $serviceEvent    The class name of the service event.
@param string             $eventMethodName Name of the method called in the service.
@param AbstractServiceDTO $dto             The data transfer object sent to the services.
@throws Exception
@throws InvalidTypeException
@throws WrongInheritanceException
@internal This function is reserved for internal usage only, you should not use it in third party applications!
Will loop on each registered service in this factory and check if they use the requested event . If they do the event is dispatched .