|
|
@ -274,6 +274,7 @@ class Engine {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function _start() {
|
|
|
|
public function _start() {
|
|
|
|
$dispatched = false;
|
|
|
|
$dispatched = false;
|
|
|
|
|
|
|
|
$self = $this;
|
|
|
|
|
|
|
|
|
|
|
|
// Flush any existing output
|
|
|
|
// Flush any existing output
|
|
|
|
if (ob_get_length() > 0) {
|
|
|
|
if (ob_get_length() > 0) {
|
|
|
@ -292,8 +293,8 @@ class Engine {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Allow post-filters to run
|
|
|
|
// Allow post-filters to run
|
|
|
|
$this->after('start', function() {
|
|
|
|
$this->after('start', function() use ($self) {
|
|
|
|
$this->stop();
|
|
|
|
$self->stop();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Route the request
|
|
|
|
// Route the request
|
|
|
|