public function build(array $config)
    {
        $output = [];

        // Fix output dir trailing slash
        if ('/' !== substr($config['output_dir'], -1) && strlen($config['output_dir']) > 0) {
            $config['output_dir'] .= '/';
        }

        if ($config['bootstrap_css']['enabled']) {
            $output['bootstrap_css'] = $this->buildBootstrapCss($config);
        }
        if ($config['content_css']['enabled']) {
            $output['content_css'] = $this->buildContentCss($config);
        }

        $output['twig_js'] = $this->buildTwigJs($config);
        $output['form_css'] = $this->buildFormCss($config);

        return $output;
    }
public function build(array $config)
    {
        $output = [];

        // Fix output dir trailing slash
        if ('/' !== substr($config['output_dir'], -1) && strlen($config['output_dir']) > 0) {
            $config['output_dir'] .= '/';
        }

        if ($config['bootstrap_css']['enabled']) {
            $output['bootstrap_css'] = $this->buildBootstrapCss($config);
        }
        if ($config['content_css']['enabled']) {
            $output['content_css'] = $this->buildContentCss($config);
        }

        $output['twig_js'] = $this->buildTwigJs($config);
        $output['form_css'] = $this->buildFormCss($config);

        return $output;
    }
public function build ( array $ config ) { $ output = [ ] ; // Fix output dir trailing slash if ( '/' !== substr ( $ config [ 'output_dir' ] , - 1 ) && strlen ( $ config [ 'output_dir' ] ) > 0 ) { $ config [ 'output_dir' ] .= '/' ; } if ( $ config [ 'bootstrap_css' ] [ 'enabled' ] ) { $ output [ 'bootstrap_css' ] = $ this -> buildBootstrapCss ( $ config ) ; } if ( $ config [ 'content_css' ] [ 'enabled' ] ) { $ output [ 'content_css' ] = $ this -> buildContentCss ( $ config ) ; } $ output [ 'twig_js' ] = $ this -> buildTwigJs ( $ config ) ; $ output [ 'form_css' ] = $ this -> buildFormCss ( $ config ) ; return $ output ; }
Builds the assetic configuration.

@param array $config
@return array
Builds the assetic configuration .