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;
}