DependencyInjection/SuluArticleExtension.php
private function appendDefaultAuthor(array $config, ContainerBuilder $container)
    {
        $mapping = $container->getParameter('sulu_document_manager.mapping');
        foreach ($mapping as $key => $item) {
            if ('article' === $item['alias']) {
                $mapping[$key]['set_default_author'] = $config['default_author'];
            }
        }

        $container->setParameter('sulu_document_manager.mapping', $mapping);
        $container->setParameter('sulu_article.default_author', $config['default_author']);
    }
private function appendDefaultAuthor(array $config, ContainerBuilder $container)
    {
        $mapping = $container->getParameter('sulu_document_manager.mapping');
        foreach ($mapping as $key => $item) {
            if ('article' === $item['alias']) {
                $mapping[$key]['set_default_author'] = $config['default_author'];
            }
        }

        $container->setParameter('sulu_document_manager.mapping', $mapping);
        $container->setParameter('sulu_article.default_author', $config['default_author']);
    }
private function appendDefaultAuthor ( array $ config , ContainerBuilder $ container ) { $ mapping = $ container -> getParameter ( 'sulu_document_manager.mapping' ) ; foreach ( $ mapping as $ key => $ item ) { if ( 'article' === $ item [ 'alias' ] ) { $ mapping [ $ key ] [ 'set_default_author' ] = $ config [ 'default_author' ] ; } } $ container -> setParameter ( 'sulu_document_manager.mapping' , $ mapping ) ; $ container -> setParameter ( 'sulu_article.default_author' , $ config [ 'default_author' ] ) ; }
Append configuration for article "set_default_author".

@param array $config
@param ContainerBuilder $container
Append configuration for article set_default_author .