public function process(ContainerBuilder $container)
    {
        if (!$container->has('ezpublish.core.io.migration.file_lister_registry')) {
            return;
        }

        $fileListersTagged = $container->findTaggedServiceIds('ezpublish.core.io.migration.file_lister');

        $fileListers = [];
        foreach ($fileListersTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $fileListers[$attributes['identifier']] = new Reference($id);
            }
        }

        $fileListerRegistryDef = $container->findDefinition('ezpublish.core.io.migration.file_lister_registry');
        $fileListerRegistryDef->setArguments([$fileListers]);
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->has('ezpublish.core.io.migration.file_lister_registry')) {
            return;
        }

        $fileListersTagged = $container->findTaggedServiceIds('ezpublish.core.io.migration.file_lister');

        $fileListers = [];
        foreach ($fileListersTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $fileListers[$attributes['identifier']] = new Reference($id);
            }
        }

        $fileListerRegistryDef = $container->findDefinition('ezpublish.core.io.migration.file_lister_registry');
        $fileListerRegistryDef->setArguments([$fileListers]);
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> has ( 'ezpublish.core.io.migration.file_lister_registry' ) ) { return ; } $ fileListersTagged = $ container -> findTaggedServiceIds ( 'ezpublish.core.io.migration.file_lister' ) ; $ fileListers = [ ] ; foreach ( $ fileListersTagged as $ id => $ tags ) { foreach ( $ tags as $ attributes ) { $ fileListers [ $ attributes [ 'identifier' ] ] = new Reference ( $ id ) ; } } $ fileListerRegistryDef = $ container -> findDefinition ( 'ezpublish.core.io.migration.file_lister_registry' ) ; $ fileListerRegistryDef -> setArguments ( [ $ fileListers ] ) ; }
Registers the FileListerInterface into the file lister registry.

@param \Symfony\Component\DependencyInjection\ContainerBuilder $container
Registers the FileListerInterface into the file lister registry .