public function load(array $configs, ContainerBuilder $container)
    {
        // Get default configuration of the bundle
        $config = $this->processConfiguration(new Configuration(), $configs);

        if (empty($config['theme'])) {
            $config['theme'] = array(
                'simple' => array(),
            );
        } else {
            foreach ($config['theme'] as &$bundleTheme) {
                // Quick fix for the removed obsolete themes
                if (isset($bundleTheme['theme']) && in_array($bundleTheme['theme'], array('advanced', 'simple'))) {
                    $bundleTheme['theme'] = 'modern';
                }
                unset($bundleTheme);
            }
        }

        $container->setParameter('zicht_tinymce.config', $config);

        // load dependency injection config
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('service.xml');
    }
public function load(array $configs, ContainerBuilder $container)
    {
        // Get default configuration of the bundle
        $config = $this->processConfiguration(new Configuration(), $configs);

        if (empty($config['theme'])) {
            $config['theme'] = array(
                'simple' => array(),
            );
        } else {
            foreach ($config['theme'] as &$bundleTheme) {
                // Quick fix for the removed obsolete themes
                if (isset($bundleTheme['theme']) && in_array($bundleTheme['theme'], array('advanced', 'simple'))) {
                    $bundleTheme['theme'] = 'modern';
                }
                unset($bundleTheme);
            }
        }

        $container->setParameter('zicht_tinymce.config', $config);

        // load dependency injection config
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('service.xml');
    }
public function load ( array $ configs , ContainerBuilder $ container ) { // Get default configuration of the bundle $ config = $ this -> processConfiguration ( new Configuration ( ) , $ configs ) ; if ( empty ( $ config [ 'theme' ] ) ) { $ config [ 'theme' ] = array ( 'simple' => array ( ) , ) ; } else { foreach ( $ config [ 'theme' ] as & $ bundleTheme ) { // Quick fix for the removed obsolete themes if ( isset ( $ bundleTheme [ 'theme' ] ) && in_array ( $ bundleTheme [ 'theme' ] , array ( 'advanced' , 'simple' ) ) ) { $ bundleTheme [ 'theme' ] = 'modern' ; } unset ( $ bundleTheme ) ; } } $ container -> setParameter ( 'zicht_tinymce.config' , $ config ) ; // load dependency injection config $ loader = new XmlFileLoader ( $ container , new FileLocator ( __DIR__ . '/../Resources/config' ) ) ; $ loader -> load ( 'service.xml' ) ; }
Loads the ZichtTinymce configuration.

@param array $configs An array of configuration values
@param ContainerBuilder $container A ContainerBuilder instance
Loads the ZichtTinymce configuration .