-
{PHP internal code} — CodeIgniter\Debug\Exceptions->errorHandler ()
-
SYSTEMPATH/Session/Session.php : 154 — ini_set()
-
SYSTEMPATH/Session/Session.php : 109 — CodeIgniter\Session\Session->configure ()
102 103 if (session_status() === PHP_SESSION_ACTIVE) { 104 $this->logger->warning('Session: Sessions is enabled, and one exists. Please don\'t $session->start();'); 105 106 return null; 107 } 108 109 $this->configure(); 110 $this->setSaveHandler(); 111 112 // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers 113 if ( 114 isset($_COOKIE[$this->config->cookieName]) 115 && (! is_string($_COOKIE[$this->config->cookieName]) || preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->config->cookieName]) !== 1) 116 ) { -
SYSTEMPATH/Config/Services.php : 715 — CodeIgniter\Session\Session->start ()
708 if (session_status() === PHP_SESSION_NONE) { 709 // PHP Session emits the headers according to `session.cache_limiter`. 710 // See https://www.php.net/manual/en/function.session-cache-limiter.php. 711 // The headers are not managed by CI's Response class. 712 // So, we remove CI's default Cache-Control header. 713 AppServices::get('response')->removeHeader('Cache-Control'); 714 715 $session->start(); 716 } 717 718 return $session; 719 } 720 721 /** 722 * The Factory for SiteURI. -
SYSTEMPATH/Config/BaseService.php : 325 — CodeIgniter\Config\Services::session ()
318 * names. 319 * 320 * @return object|null 321 */ 322 public static function __callStatic(string $name, array $arguments) 323 { 324 if (isset(static::$factories[$name])) { 325 return static::$factories[$name](...$arguments); 326 } 327 328 $service = static::serviceExists($name); 329 330 if ($service === null) { 331 return null; 332 } -
SYSTEMPATH/Config/BaseService.php : 264 — CodeIgniter\Config\BaseService::__callStatic ()
257 return static::$mocks[$key]; 258 } 259 260 if (! isset(static::$instances[$key])) { 261 // Make sure $getShared is false 262 $params[] = false; 263 264 static::$instances[$key] = AppServices::$key(...$params); 265 } 266 267 return static::$instances[$key]; 268 } 269 270 /** 271 * 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 : 334 — CodeIgniter\Config\Services::session ()
327 328 $service = static::serviceExists($name); 329 330 if ($service === null) { 331 return null; 332 } 333 334 return $service::$name(...$arguments); 335 } 336 337 /** 338 * Check if the requested service is defined and return the declaring 339 * class. Return null if not found. 340 */ 341 public static function serviceExists(string $name): ?string -
SYSTEMPATH/Config/BaseService.php : 203 — CodeIgniter\Config\BaseService::__callStatic ()
196 * 197 * @param string $key Identifier of the entry to look for. 198 * 199 * @return object|null Entry. 200 */ 201 public static function get(string $key): ?object 202 { 203 return static::$instances[$key] ?? static::__callStatic($key, []); 204 } 205 206 /** 207 * Checks if a service instance has been created. 208 * 209 * @param string $key Identifier of the entry to check. 210 * -
SYSTEMPATH/Common.php : 1114 — CodeIgniter\Config\BaseService::get ()
1107 * - $timer = \CodeIgniter\Config\Services::timer(); 1108 * 1109 * @param array|bool|float|int|object|string|null ...$params 1110 */ 1111 function service(string $name, ...$params): ?object 1112 { 1113 if ($params === []) { 1114 return Services::get($name); 1115 } 1116 1117 return Services::$name(...$params); 1118 } 1119 } 1120 1121 if (! function_exists('single_service')) { -
SYSTEMPATH/Common.php : 1087 — service()
-
APPPATH/Services/AppContextService.php : 61 — session()
-
APPPATH/Config/Services.php : 45 — App\Services\AppContextService->__construct ()
38 public static function appContext(bool $getShared = true): AppContextService 39 { 40 if ($getShared) { 41 // Return the same instance every time (Singleton pattern) 42 return static::getSharedInstance('appContext'); 43 } 44 45 return new AppContextService(); 46 } 47 48 /** 49 * Auth Service 50 * 51 * @param bool $getShared 52 * @return AuthService -
SYSTEMPATH/Config/BaseService.php : 264 — Config\Services::appContext ()
257 return static::$mocks[$key]; 258 } 259 260 if (! isset(static::$instances[$key])) { 261 // Make sure $getShared is false 262 $params[] = false; 263 264 static::$instances[$key] = AppServices::$key(...$params); 265 } 266 267 return static::$instances[$key]; 268 } 269 270 /** 271 * The Autoloader class is the central class that handles our -
APPPATH/Config/Services.php : 42 — CodeIgniter\Config\BaseService::getSharedInstance ()
35 * @param bool $getShared 36 * @return AppContextService 37 */ 38 public static function appContext(bool $getShared = true): AppContextService 39 { 40 if ($getShared) { 41 // Return the same instance every time (Singleton pattern) 42 return static::getSharedInstance('appContext'); 43 } 44 45 return new AppContextService(); 46 } 47 48 /** 49 * Auth Service -
SYSTEMPATH/Config/BaseService.php : 334 — Config\Services::appContext ()
327 328 $service = static::serviceExists($name); 329 330 if ($service === null) { 331 return null; 332 } 333 334 return $service::$name(...$arguments); 335 } 336 337 /** 338 * Check if the requested service is defined and return the declaring 339 * class. Return null if not found. 340 */ 341 public static function serviceExists(string $name): ?string -
SYSTEMPATH/Config/BaseService.php : 203 — CodeIgniter\Config\BaseService::__callStatic ()
196 * 197 * @param string $key Identifier of the entry to look for. 198 * 199 * @return object|null Entry. 200 */ 201 public static function get(string $key): ?object 202 { 203 return static::$instances[$key] ?? static::__callStatic($key, []); 204 } 205 206 /** 207 * Checks if a service instance has been created. 208 * 209 * @param string $key Identifier of the entry to check. 210 * -
SYSTEMPATH/Common.php : 1114 — CodeIgniter\Config\BaseService::get ()
1107 * - $timer = \CodeIgniter\Config\Services::timer(); 1108 * 1109 * @param array|bool|float|int|object|string|null ...$params 1110 */ 1111 function service(string $name, ...$params): ?object 1112 { 1113 if ($params === []) { 1114 return Services::get($name); 1115 } 1116 1117 return Services::$name(...$params); 1118 } 1119 } 1120 1121 if (! function_exists('single_service')) { -
APPPATH/Common.php : 9 — service()
-
APPPATH/Config/Routes.php : 9 — getContextValue()
-
require SYSTEMPATH/Router/RouteCollection.php — require()
-
SYSTEMPATH/CodeIgniter.php : 818 — CodeIgniter\Router\RouteCollection->loadRoutes ()
811 * @throws RedirectException 812 */ 813 protected function tryToRouteIt(?RouteCollectionInterface $routes = null) 814 { 815 $this->benchmark->start('routing'); 816 817 if (! $routes instanceof RouteCollectionInterface) { 818 $routes = service('routes')->loadRoutes(); 819 } 820 821 // $routes is defined in Config/Routes.php 822 $this->router = Services::router($routes, $this->request); 823 824 // $uri is URL-encoded. 825 $uri = $this->request->getPath(); -
SYSTEMPATH/CodeIgniter.php : 441 — CodeIgniter\CodeIgniter->tryToRouteIt ()
434 */ 435 protected function handleRequest(?RouteCollectionInterface $routes, Cache $cacheConfig, bool $returnResponse = false) 436 { 437 if ($this->request instanceof IncomingRequest && $this->request->getMethod() === 'CLI') { 438 return $this->response->setStatusCode(405)->setBody('Method Not Allowed'); 439 } 440 441 $routeFilters = $this->tryToRouteIt($routes); 442 443 // $uri is URL-encoded. 444 $uri = $this->request->getPath(); 445 446 if ($this->enableFilters) { 447 /** @var Filters $filters */ 448 $filters = service('filters'); -
SYSTEMPATH/CodeIgniter.php : 340 — CodeIgniter\CodeIgniter->handleRequest ()
333 $possibleResponse = $this->runRequiredBeforeFilters($filters); 334 335 // If a ResponseInterface instance is returned then send it back to the client and stop 336 if ($possibleResponse instanceof ResponseInterface) { 337 $this->response = $possibleResponse; 338 } else { 339 try { 340 $this->response = $this->handleRequest($routes, config(Cache::class), $returnResponse); 341 } catch (ResponsableInterface $e) { 342 $this->outputBufferingEnd(); 343 344 $this->response = $e->getResponse(); 345 } catch (PageNotFoundException $e) { 346 $this->response = $this->display404errors($e); 347 } catch (Throwable $e) { -
SYSTEMPATH/Boot.php : 417 — CodeIgniter\CodeIgniter->run ()
410 411 /** 412 * Now that everything is set up, it's time to actually fire 413 * up the engines and make this app do its thang. 414 */ 415 protected static function runCodeIgniter(CodeIgniter $app): void 416 { 417 $app->run(); 418 } 419 420 protected static function saveConfigCache(FactoriesCache $factoriesCache): void 421 { 422 $factoriesCache->save('config'); 423 } 424 -
SYSTEMPATH/Boot.php : 68 — CodeIgniter\Boot::runCodeIgniter ()
61 if ($configCacheEnabled) { 62 $factoriesCache = static::loadConfigCache(); 63 } 64 65 static::autoloadHelpers(); 66 67 $app = static::initializeCodeIgniter(); 68 static::runCodeIgniter($app); 69 70 if ($configCacheEnabled) { 71 static::saveConfigCache($factoriesCache); 72 } 73 74 // Exits the application, setting the exit code for CLI-based 75 // applications that might be watching. -
{PHP internal code} — CodeIgniter\Boot::bootWeb ()
-
FCPATH/index.php : 9 — eval()