protected function configureHydrator(array $config, ContainerBuilder $container)
    {
        if (!$container->hasDefinition($config['hydrator'])) {
            throw new \RuntimeException(sprintf('Unable to load hydrator service "%s"', $config['hydrator']));
        }

        $container->getDefinition('eko_feed.feed.reader')
            ->addMethodCall('setHydrator', [new Reference($config['hydrator'])]);
    }