Skip to content

Commit 5aa75a8

Browse files
committed
Update system/CodeIgniter.php
1 parent f9effd8 commit 5aa75a8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

system/CodeIgniter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
508508
$this->gatherOutput($cacheConfig, $returned);
509509
$gathered = true;
510510
}
511-
// Closure controller has already run inside startController().
512-
// Use instanceof instead of is_callable() — 88x faster for this check.
513511
elseif (! $this->controller instanceof Closure) {
514512
$controller = $this->createController();
515513

@@ -549,7 +547,7 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
549547
}
550548

551549
// Execute controller attributes' after() methods AFTER framework filters.
552-
if (config(Routing::class)->useControllerAttributes === true) {
550+
if ((config('Routing')->useControllerAttributes ?? true) === true) {
553551
$this->benchmark->start('route_attributes_after');
554552
$this->response = $this->router->executeAfterAttributes($this->request, $this->response);
555553
$this->benchmark->stop('route_attributes_after');

0 commit comments

Comments
 (0)