public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $instanceManager = new InstanceManager($serviceLocator);
        $di = new DIContainer(null, $instanceManager);
        $config = $serviceLocator->get('Config');

        if (isset($config['di'])) {
            $di->configure(new DiConfig($config['di']));
        }

        return $di;
    }