Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libraries/src/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function execute()
$this->compress();

// Trigger the onAfterCompress event.
$this->triggerEvent('onAfterCompress');
$this->dispatchEvent('onAfterCompress');
}
} catch (\Throwable $throwable) {
/** @var ErrorEvent $event */
Expand All @@ -317,19 +317,19 @@ public function execute()
);

// Trigger the onError event.
$this->triggerEvent('onError', $event);
$this->dispatchEvent('onError', $event);

ExceptionHandler::handleException($event->getError());
}

// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
$this->dispatchEvent('onBeforeRespond');

// Send the application response.
$this->respond();

// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
$this->dispatchEvent('onAfterRespond');
}

/**
Expand Down