src/ProophEventStoreModule/Factory/AggregateTypeStreamStrategyFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $aggregateTypeStreamMap = array();

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

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

        return new AggregateTypeStreamStrategy($serviceLocator->get('prooph.event_store'), $aggregateTypeStreamMap);
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $aggregateTypeStreamMap = array();

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

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

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

@param ServiceLocatorInterface $serviceLocator
@return mixed