-
{PHP internal code} — CodeIgniter\Debug\Exceptions->errorHandler ()
-
SYSTEMPATH/Session/Session.php : 283 — ini_set()
-
SYSTEMPATH/Session/Session.php : 232 — CodeIgniter\Session\Session->configure ()
225 226 if (session_status() === PHP_SESSION_ACTIVE) { 227 $this->logger->warning('Session: Sessions is enabled, and one exists. Please don\'t $session->start();'); 228 229 return null; 230 } 231 232 $this->configure(); 233 $this->setSaveHandler(); 234 235 // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers 236 if (isset($_COOKIE[$this->config->cookieName]) 237 && (! is_string($_COOKIE[$this->config->cookieName]) || preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->config->cookieName]) !== 1) 238 ) { 239 unset($_COOKIE[$this->config->cookieName]); -
SYSTEMPATH/Config/Services.php : 710 — CodeIgniter\Session\Session->start ()
703 if (session_status() === PHP_SESSION_NONE) { 704 // PHP Session emits the headers according to `session.cache_limiter`. 705 // See https://www.php.net/manual/en/function.session-cache-limiter.php. 706 // The headers are not managed by CI's Response class. 707 // So, we remove CI's default Cache-Control header. 708 AppServices::get('response')->removeHeader('Cache-Control'); 709 710 $session->start(); 711 } 712 713 return $session; 714 } 715 716 /** 717 * The Factory for SiteURI. -
SYSTEMPATH/Config/BaseService.php : 312 — CodeIgniter\Config\Services::session ()
305 * names. 306 * 307 * @return object|null 308 */ 309 public static function __callStatic(string $name, array $arguments) 310 { 311 if (isset(static::$factories[$name])) { 312 return static::$factories[$name](...$arguments); 313 } 314 315 $service = static::serviceExists($name); 316 317 if ($service === null) { 318 return null; 319 } -
SYSTEMPATH/Config/BaseService.php : 251 — CodeIgniter\Config\BaseService::__callStatic ()
244 return static::$mocks[$key]; 245 } 246 247 if (! isset(static::$instances[$key])) { 248 // Make sure $getShared is false 249 $params[] = false; 250 251 static::$instances[$key] = AppServices::$key(...$params); 252 } 253 254 return static::$instances[$key]; 255 } 256 257 /** 258 * The Autoloader class is the central class that handles our -
SYSTEMPATH/Config/Services.php : 668 — CodeIgniter\Config\BaseService::getSharedInstance ()
661 * Return the session manager. 662 * 663 * @return Session 664 */ 665 public static function session(?SessionConfig $config = null, bool $getShared = true) 666 { 667 if ($getShared) { 668 return static::getSharedInstance('session', $config); 669 } 670 671 $config ??= config(SessionConfig::class); 672 673 $logger = AppServices::get('logger'); 674 675 $driverName = $config->driver; -
SYSTEMPATH/Config/BaseService.php : 321 — CodeIgniter\Config\Services::session ()
314 315 $service = static::serviceExists($name); 316 317 if ($service === null) { 318 return null; 319 } 320 321 return $service::$name(...$arguments); 322 } 323 324 /** 325 * Check if the requested service is defined and return the declaring 326 * class. Return null if not found. 327 */ 328 public static function serviceExists(string $name): ?string -
APPPATH/Controllers/BaseController.php : 59 — CodeIgniter\Config\BaseService::__callStatic ()
52 parent::initController($request, $response, $logger); 53 54 55 // Preload any models, libraries, etc, here. 56 57 // E.g.: $this->session = service('session'); 58 59 $this->session = \Config\Services::session(); 60 } 61 } -
SYSTEMPATH/CodeIgniter.php : 904 — App\Controllers\BaseController->initController ()
897 * @return Controller 898 */ 899 protected function createController() 900 { 901 assert(is_string($this->controller)); 902 903 $class = new $this->controller(); 904 $class->initController($this->request, $this->response, Services::logger()); 905 906 $this->benchmark->stop('controller_constructor'); 907 908 return $class; 909 } 910 911 /** -
SYSTEMPATH/CodeIgniter.php : 498 — CodeIgniter\CodeIgniter->createController ()
491 } 492 } 493 494 $returned = $this->startController(); 495 496 // Closure controller has run in startController(). 497 if (! is_callable($this->controller)) { 498 $controller = $this->createController(); 499 500 if (! method_exists($controller, '_remap') && ! is_callable([$controller, $this->method], false)) { 501 throw PageNotFoundException::forMethodNotFound($this->method); 502 } 503 504 // Is there a "post_controller_constructor" event? 505 Events::trigger('post_controller_constructor'); -
SYSTEMPATH/CodeIgniter.php : 354 — CodeIgniter\CodeIgniter->handleRequest ()
347 $possibleResponse = $this->runRequiredBeforeFilters($filters); 348 349 // If a ResponseInterface instance is returned then send it back to the client and stop 350 if ($possibleResponse instanceof ResponseInterface) { 351 $this->response = $possibleResponse; 352 } else { 353 try { 354 $this->response = $this->handleRequest($routes, config(Cache::class), $returnResponse); 355 } catch (ResponsableInterface $e) { 356 $this->outputBufferingEnd(); 357 358 $this->response = $e->getResponse(); 359 } catch (PageNotFoundException $e) { 360 $this->response = $this->display404errors($e); 361 } catch (Throwable $e) { -
SYSTEMPATH/Boot.php : 334 — CodeIgniter\CodeIgniter->run ()
327 328 /** 329 * Now that everything is set up, it's time to actually fire 330 * up the engines and make this app do its thang. 331 */ 332 protected static function runCodeIgniter(CodeIgniter $app): void 333 { 334 $app->run(); 335 } 336 337 protected static function saveConfigCache(FactoriesCache $factoriesCache): void 338 { 339 $factoriesCache->save('config'); 340 } 341 -
SYSTEMPATH/Boot.php : 67 — CodeIgniter\Boot::runCodeIgniter ()
60 if ($configCacheEnabled) { 61 $factoriesCache = static::loadConfigCache(); 62 } 63 64 static::autoloadHelpers(); 65 66 $app = static::initializeCodeIgniter(); 67 static::runCodeIgniter($app); 68 69 if ($configCacheEnabled) { 70 static::saveConfigCache($factoriesCache); 71 } 72 73 // Exits the application, setting the exit code for CLI-based 74 // applications that might be watching. -
FCPATH/index.php : 56 — CodeIgniter\Boot::bootWeb ()
49 // ^^^ Change this line if you move your application folder 50 51 $paths = new Config\Paths(); 52 53 // LOAD THE FRAMEWORK BOOTSTRAP FILE 54 require $paths->systemDirectory . '/Boot.php'; 55 56 exit(CodeIgniter\Boot::bootWeb($paths)); 57