src/Initializer/UserServiceInitializer.php
public function initialize($instance, ServiceLocatorInterface $services)
    {
        if ($instance instanceof UserServiceAwareInterface) {
            if ($services instanceof AbstractPluginManager) {
                $services = $services->getServiceLocator();
            }

            /* @var $options UserServiceOptionsInterface */
            $options = $services->get(ModuleOptions::class);
            $instance->setUserService($services->get('DomainServiceManager')->get($options->getUserEntityClass()));
        }
    }
public function initialize($instance, ServiceLocatorInterface $services)
    {
        if ($instance instanceof UserServiceAwareInterface) {
            if ($services instanceof AbstractPluginManager) {
                $services = $services->getServiceLocator();
            }

            /* @var $options UserServiceOptionsInterface */
            $options = $services->get(ModuleOptions::class);
            $instance->setUserService($services->get('DomainServiceManager')->get($options->getUserEntityClass()));
        }
    }
public function initialize ( $ instance , ServiceLocatorInterface $ services ) { if ( $ instance instanceof UserServiceAwareInterface ) { if ( $ services instanceof AbstractPluginManager ) { $ services = $ services -> getServiceLocator ( ) ; } /* @var $options UserServiceOptionsInterface */ $ options = $ services -> get ( ModuleOptions :: class ) ; $ instance -> setUserService ( $ services -> get ( 'DomainServiceManager' ) -> get ( $ options -> getUserEntityClass ( ) ) ) ; } }
{@inheritDoc}
{