MediaAdminBundle/DependencyInjection/OpenOrchestraMediaAdminExtension.php
protected function setFilesParameters(ContainerBuilder $container, array $config, YamlFileLoader $loader)
    {
        $container->setParameter(
            'open_orchestra_media_admin.files.thumbnail_format',
            $config['thumbnail']
        );

        $container->setParameter(
            'open_orchestra_media_admin.files.alternatives.default.thumbnail',
            $config['files']['alternatives']['default']['thumbnail']
        );

        $container->setParameter(
            'open_orchestra_media_admin.files.alternatives.audio.thumbnail',
            $config['files']['alternatives']['audio']['thumbnail']
            );

        if (count($config['files']['alternatives']['image']['formats']) > 0) {
            $container->setParameter(
                'open_orchestra_media_admin.files.alternatives.image.formats',
                $config['files']['alternatives']['image']['formats']
            );
        } else {
            $loader->load('alternatives_formats.yml');
        }
    }
protected function setFilesParameters(ContainerBuilder $container, array $config, YamlFileLoader $loader)
    {
        $container->setParameter(
            'open_orchestra_media_admin.files.thumbnail_format',
            $config['thumbnail']
        );

        $container->setParameter(
            'open_orchestra_media_admin.files.alternatives.default.thumbnail',
            $config['files']['alternatives']['default']['thumbnail']
        );

        $container->setParameter(
            'open_orchestra_media_admin.files.alternatives.audio.thumbnail',
            $config['files']['alternatives']['audio']['thumbnail']
            );

        if (count($config['files']['alternatives']['image']['formats']) > 0) {
            $container->setParameter(
                'open_orchestra_media_admin.files.alternatives.image.formats',
                $config['files']['alternatives']['image']['formats']
            );
        } else {
            $loader->load('alternatives_formats.yml');
        }
    }
protected function setFilesParameters ( ContainerBuilder $ container , array $ config , YamlFileLoader $ loader ) { $ container -> setParameter ( 'open_orchestra_media_admin.files.thumbnail_format' , $ config [ 'thumbnail' ] ) ; $ container -> setParameter ( 'open_orchestra_media_admin.files.alternatives.default.thumbnail' , $ config [ 'files' ] [ 'alternatives' ] [ 'default' ] [ 'thumbnail' ] ) ; $ container -> setParameter ( 'open_orchestra_media_admin.files.alternatives.audio.thumbnail' , $ config [ 'files' ] [ 'alternatives' ] [ 'audio' ] [ 'thumbnail' ] ) ; if ( count ( $ config [ 'files' ] [ 'alternatives' ] [ 'image' ] [ 'formats' ] ) > 0 ) { $ container -> setParameter ( 'open_orchestra_media_admin.files.alternatives.image.formats' , $ config [ 'files' ] [ 'alternatives' ] [ 'image' ] [ 'formats' ] ) ; } else { $ loader -> load ( 'alternatives_formats.yml' ) ; } }
Add the files generation parameters to the container
Takes the Open Orchestra alternatives image formats or the application one instead if defined

@param ContainerBuilder $container
@param array            $config
@param YamlFileLoader   $loader
Add the files generation parameters to the container Takes the Open Orchestra alternatives image formats or the application one instead if defined