mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Merge branch 'release/1.6.1'
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Improved CSS for the bottom filter bar of DebugBar
|
||||
1. [](#bugfix)
|
||||
* Fixed issue with `@import` not being added to top of pipelined css [#2440](https://github.com/getgrav/grav/issues/2440)
|
||||
* Fixed an error with `DebuggerAssetsProcess` on upgrade
|
||||
* Hopefull fixed an error with `DebuggerAssetsProcessor` and `RendereProcessor` on upgrade
|
||||
|
||||
# v1.6.0
|
||||
## 04/11/2019
|
||||
|
||||
@@ -21,15 +21,17 @@ class DebuggerAssetsProcessor extends ProcessorBase
|
||||
|
||||
public function process(ServerRequestInterface $request = null, RequestHandlerInterface $handler = null) : ResponseInterface
|
||||
{
|
||||
// Backwards compatibility
|
||||
if (is_null($request) && is_null($handler)) {
|
||||
$this->container['debugger']->addAssets();
|
||||
return new Response();
|
||||
}
|
||||
|
||||
$this->startTimer();
|
||||
$this->container['debugger']->addAssets();
|
||||
$this->stopTimer();
|
||||
|
||||
// Backwards compatibility
|
||||
if ($request && $handler) {
|
||||
return $handler->handle($request);
|
||||
} else {
|
||||
return new Response();
|
||||
}
|
||||
return $handler->handle($request);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,24 @@ class RenderProcessor extends ProcessorBase
|
||||
|
||||
public function process(ServerRequestInterface $request = null, RequestHandlerInterface $handler = null) : ResponseInterface
|
||||
{
|
||||
// Backwards compatibility
|
||||
if (is_null($request) && is_null($handler)) {
|
||||
$container = $this->container;
|
||||
$output = $container['output'];
|
||||
|
||||
$container->output = $output;
|
||||
$container->fireEvent('onOutputGenerated');
|
||||
|
||||
// Set the header type
|
||||
$container->header();
|
||||
echo $container->output;
|
||||
|
||||
// remove any output
|
||||
$container->output = '';
|
||||
$this->container->fireEvent('onOutputRendered');
|
||||
return new Response();
|
||||
}
|
||||
|
||||
$this->startTimer();
|
||||
|
||||
$container = $this->container;
|
||||
|
||||
Reference in New Issue
Block a user