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'])]);
    }
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'])]);
    }
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' ] ) ] ) ; }
Configures feed reader hydrator service.

@param array            $config    Bundle configuration values array
@param ContainerBuilder $container A ContainerBuilder instance

@throws \RuntimeException
Configures feed reader hydrator service .