src/DotsUnited/BundleFu/Bundle.php
public function end(array $options = array())
    {
        if (null === $this->currentBundleOptions) {
            throw new \RuntimeException('end() is called without a start() call.');
        }

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

        $captured = ob_get_clean();

        if ($options['bypass']) {
            echo $captured;
        } else {
            $this->extractFiles($captured, $options['docroot']);
        }

        $this->currentBundleOptions = null;

        return $this;
    }
public function end(array $options = array())
    {
        if (null === $this->currentBundleOptions) {
            throw new \RuntimeException('end() is called without a start() call.');
        }

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

        $captured = ob_get_clean();

        if ($options['bypass']) {
            echo $captured;
        } else {
            $this->extractFiles($captured, $options['docroot']);
        }

        $this->currentBundleOptions = null;

        return $this;
    }
public function end ( array $ options = array ( ) ) { if ( null === $ this -> currentBundleOptions ) { throw new \ RuntimeException ( 'end() is called without a start() call.' ) ; } $ options = array_merge ( $ this -> currentBundleOptions , $ options ) ; $ captured = ob_get_clean ( ) ; if ( $ options [ 'bypass' ] ) { echo $ captured ; } else { $ this -> extractFiles ( $ captured , $ options [ 'docroot' ] ) ; } $ this -> currentBundleOptions = null ; return $ this ; }
End capturing and bundling current output.

@param  array  $options
@return Bundle
End capturing and bundling current output .