src/ProophEventStoreModule/Factory/SingleStreamStrategyFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $singleStreamName = null;

        if ($serviceLocator->has('configuration')) {
            $config = $serviceLocator->get('configuration');

            if (isset($config['prooph.event_store']) && isset($config['prooph.event_store']['single_stream_name'])) {
                $singleStreamName = $config['prooph.event_store']['single_stream_name'];
            }
        }

        return new SingleStreamStrategy($serviceLocator->get('prooph.event_store'), $singleStreamName);
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $singleStreamName = null;

        if ($serviceLocator->has('configuration')) {
            $config = $serviceLocator->get('configuration');

            if (isset($config['prooph.event_store']) && isset($config['prooph.event_store']['single_stream_name'])) {
                $singleStreamName = $config['prooph.event_store']['single_stream_name'];
            }
        }

        return new SingleStreamStrategy($serviceLocator->get('prooph.event_store'), $singleStreamName);
    }
Create service

@param ServiceLocatorInterface $serviceLocator
@return mixed