Skip to content

Commit 907981a

Browse files
lonnieezellmichalsn
andcommitted
Apply suggestions from code review
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent dbad51e commit 907981a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/CodeIgniter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
502502
}
503503

504504
// Execute controller attributes' after() methods AFTER framework filters
505-
if (config('routing')->useControllerAttributes === true) {
505+
if ((config('Routing')->useControllerAttributes ?? true) === true) {
506506
$this->benchmark->start('route_attributes_after');
507507
$this->response = $this->router->executeAfterAttributes($this->request, $this->response);
508508
$this->benchmark->stop('route_attributes_after');
@@ -868,7 +868,7 @@ protected function startController()
868868

869869
// Execute route attributes' before() methods
870870
// This runs after routing/validation but BEFORE expensive controller instantiation
871-
if (config('routing')->useControllerAttributes === true) {
871+
if ((config('Routing')->useControllerAttributes ?? true) === true) {
872872
$this->benchmark->start('route_attributes_before');
873873
$attributeResponse = $this->router->executeBeforeAttributes($this->request);
874874
$this->benchmark->stop('route_attributes_before');

0 commit comments

Comments
 (0)