src/DotsUnited/BundleFu/Factory.php
public function createBundle($options = null)
    {
        if (!is_array($options)) {
            if (null !== $options) {
                $options = array('name' => $options);
            } else {
                $options = array();
            }
        }

        $options = array_merge($this->options, $options);

        if (isset($options['css_filter']) && is_string($options['css_filter'])) {
            $options['css_filter'] = $this->getFilter($options['css_filter']);
        }

        if (isset($options['js_filter']) && is_string($options['js_filter'])) {
            $options['js_filter'] = $this->getFilter($options['js_filter']);
        }

        return new Bundle($options);
    }
public function createBundle($options = null)
    {
        if (!is_array($options)) {
            if (null !== $options) {
                $options = array('name' => $options);
            } else {
                $options = array();
            }
        }

        $options = array_merge($this->options, $options);

        if (isset($options['css_filter']) && is_string($options['css_filter'])) {
            $options['css_filter'] = $this->getFilter($options['css_filter']);
        }

        if (isset($options['js_filter']) && is_string($options['js_filter'])) {
            $options['js_filter'] = $this->getFilter($options['js_filter']);
        }

        return new Bundle($options);
    }
public function createBundle ( $ options = null ) { if ( ! is_array ( $ options ) ) { if ( null !== $ options ) { $ options = array ( 'name' => $ options ) ; } else { $ options = array ( ) ; } } $ options = array_merge ( $ this -> options , $ options ) ; if ( isset ( $ options [ 'css_filter' ] ) && is_string ( $ options [ 'css_filter' ] ) ) { $ options [ 'css_filter' ] = $ this -> getFilter ( $ options [ 'css_filter' ] ) ; } if ( isset ( $ options [ 'js_filter' ] ) && is_string ( $ options [ 'js_filter' ] ) ) { $ options [ 'js_filter' ] = $ this -> getFilter ( $ options [ 'js_filter' ] ) ; } return new Bundle ( $ options ) ; }
Create a Bundle instance.

@param  string|array                $options An array of options or a bundle name as string
@return \DotsUnited\BundleFu\Bundle
@throws \RuntimeException
Create a Bundle instance .