Skip to content

Commit

Permalink
Add pre system hook. Fixes #555
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jul 6, 2017
1 parent fed1d30 commit b46b5f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,15 @@ public function run(RouteCollectionInterface $routes = null)

$this->forceSecureAccess();

$this->spoofRequestMethod();

Events::trigger('pre_system');

// Check for a cached page. Execution will stop
// if the page has been cached.
$cacheConfig = new Cache();
$this->displayCache($cacheConfig);

$this->spoofRequestMethod();

try {
$this->handleRequest($routes, $cacheConfig);
}
Expand Down

0 comments on commit b46b5f2

Please sign in to comment.