Deprecated
Table of Contents
Autoloader.php
| Line | Element | Reason |
|---|---|---|
| 336 | Autoloader::sanitizeFilename() | No longer used. See https://github.com/codeigniter4/CodeIgniter4/issues/7055 |
| 452 | Autoloader::discoverComposerNamespaces() | No longer used. |
BaseHandler.php
| Line | Element | Reason |
|---|---|---|
| 34 | BaseHandler::RESERVED_CHARACTERS | in favor of the Cache config |
FileHandler.php
| Line | Element | Reason |
|---|---|---|
| 242 | FileHandler::writeFile() | Use |
| 277 | FileHandler::deleteFiles() | Use |
| 321 | FileHandler::getDirFileInfo() | Use |
| 380 | FileHandler::getFileInfo() | Use |
BaseCommand.php
| Line | Element | Reason |
|---|---|---|
| 205 | BaseCommand::getPad() | Use setPad() instead. |
CLI.php
| Line | Element | Reason |
|---|---|---|
| 535 | CLI::isWindows() | Use |
| 43 | CLI::$readline_support | Should be protected, and no longer used. |
| 53 | CLI::$wait_msg | Should be protected. |
GeneratorTrait.php
| Line | Element | Reason |
|---|---|---|
| 110 | GeneratorTrait::execute() | use generateClass() instead |
CodeIgniter.php
| Line | Element | Reason |
|---|---|---|
| 220 | CodeIgniter::initializeKint() | Moved to Autoloader. |
| 237 | CodeIgniter::autoloadKint() | Moved to Autoloader. |
| 262 | CodeIgniter::configureKint() | Moved to Autoloader. |
| 435 | CodeIgniter::handleRequest() | $returnResponse is deprecated. |
| 562 | CodeIgniter::detectEnvironment() | No longer used. Moved to index.php and spark. |
| 580 | CodeIgniter::bootstrapEnvironment() | Moved to system/bootstrap.php. |
| 687 | CodeIgniter::forceSecureAccess() | No longer used. Moved to ForceHTTPS filter. |
| 706 | CodeIgniter::displayCache() | PageCache required filter is used. No longer used. |
| 706 | CodeIgniter::displayCache() | The parameter $config is deprecated. No longer used. |
| 729 | CodeIgniter::cache() | Moved to ResponseCache::setTtl(). No longer used. |
| 742 | CodeIgniter::cachePage() | No longer used. |
| 772 | CodeIgniter::generateCacheName() | No longer used. |
| 792 | CodeIgniter::displayPerformanceMetrics() | PerformanceMetrics required filter is used. No longer used. |
| 851 | CodeIgniter::determinePath() | No longer used. |
| 1017 | CodeIgniter::gatherOutput() | $cacheConfig is deprecated. |
| 1141 | CodeIgniter::callExit() | No longer Used. Moved to index.php. |
| 137 | CodeIgniter::$cacheTTL | Moved to ResponseCache::$ttl. No longer used. |
| 158 | CodeIgniter::$returnResponse | No longer used. |
BaseService.php
| Line | Element | Reason |
|---|---|---|
| 185 | BaseService::$services | No longer used. |
Services.php
| Line | Element | Reason |
|---|---|---|
| 521 | Services::request() | The parameter $config and $getShared are deprecated. |
BaseBuilder.php
| Line | Element | Reason |
|---|---|---|
| 2272 | BaseBuilder::setInsertBatch() | |
| 2723 | BaseBuilder::setUpdateBatch() | |
| 3560 | BaseBuilder::cleanClone() |
BaseConnection.php
| Line | Element | Reason |
|---|---|---|
| 189 | BaseConnection::$strictOn | Will move to MySQLi\Connection. |
Forge.php
| Line | Element | Reason |
|---|---|---|
| 595 | Forge::_createTable() | $ifNotExists is no longer used, and will be removed. |
| 118 | Forge::$createTableIfStr | This is no longer used. |
Forge.php
| Line | Element | Reason |
|---|---|---|
| 44 | Forge::$createTableIfStr | This is no longer used. |
Seeder.php
| Line | Element | Reason |
|---|---|---|
| 74 | Seeder::$faker |
Connection.php
| Line | Element | Reason |
|---|---|---|
| 547 | Connection::getError() | Use |
Forge.php
| Line | Element | Reason |
|---|---|---|
| 104 | Forge::$createTableIfStr | This is no longer used. |
Exceptions.php
| Line | Element | Reason |
|---|---|---|
| 318 | Exceptions::determineView() | No longer used. Moved to ExceptionHandler. |
| 354 | Exceptions::render() | No longer used. Moved to BaseExceptionHandler. |
| 396 | Exceptions::collectVars() | No longer used. Moved to BaseExceptionHandler. |
| 431 | Exceptions::maskSensitiveData() | No longer used. Moved to BaseExceptionHandler. |
| 447 | Exceptions::maskData() | No longer used. Moved to BaseExceptionHandler. |
| 535 | Exceptions::cleanPath() | Use dedicated |
| 552 | Exceptions::describeMemory() | No longer used. Moved to BaseExceptionHandler. |
| 572 | Exceptions::highlightFile() | No longer used. Moved to BaseExceptionHandler. |
| 45 | Exceptions::$ob_level | No longer used. Moved to BaseExceptionHandler. |
| 55 | Exceptions::$viewPath | No longer used. Moved to BaseExceptionHandler. |
BaseCollector.php
| Line | Element | Reason |
|---|---|---|
| 183 | BaseCollector::cleanPath() | Use the dedicated |
SodiumHandler.php
| Line | Element | Reason |
|---|---|---|
| 141 | SodiumHandler::parseParams() | No longer used. |
DownloadException.php
| Line | Element | Reason |
|---|---|---|
| 52 | DownloadException::forCannotSetCache() | Since v4.5.6 |
FrameworkException.php
| Line | Element | Reason |
|---|---|---|
| 63 | FrameworkException::forMissingExtension() | No longer used. |
File.php
| Line | Element | Reason |
|---|---|---|
| 98 | File::getSizeByUnit() | Use getSizeByBinaryUnit() or getSizeByMetricUnit() instead |
Filters.php
| Line | Element | Reason |
|---|---|---|
| 173 | Filters::discoverFilters() | Use Registrar instead. |
| 654 | Filters::getArguments() | Already does not work. |
| 134 | Filters::$arguments | No longer used. |
| 143 | Filters::$argumentsClass | No longer used. |
HoneypotException.php
| Line | Element | Reason |
|---|---|---|
| 47 | HoneypotException::forNoHiddenValue() | Never used. |
ContentSecurityPolicy.php
| Line | Element | Reason |
|---|---|---|
| 285 | ContentSecurityPolicy::$nonces | Never used. |
HTTPException.php
| Line | Element | Reason |
|---|---|---|
| 229 | HTTPException::forInvalidSameSiteSetting() | Use |
Message.php
| Line | Element | Reason |
|---|---|---|
| 74 | Message::getHeaders() | Use Message::headers() to make room for PSR-7 |
| 91 | Message::getHeader() | Use Message::header() to make room for PSR-7 |
OutgoingRequest.php
| Line | Element | Reason |
|---|---|---|
| 87 | OutgoingRequest::setMethod() | Use withMethod() instead for immutability |
Request.php
| Line | Element | Reason |
|---|---|---|
| 54 | Request::setMethod() | Use withMethod() instead for immutability |
RequestTrait.php
| Line | Element | Reason |
|---|---|---|
| 220 | RequestTrait::getEnv() | This method does not work from the beginning. Use |
| 354 | RequestTrait::populateGlobals() | No longer needs to be called explicitly. Used internally to maintain BC with $globals. |
| 44 | RequestTrait::$ipAddress | Will become private in a future release |
| 53 | RequestTrait::$globals | Use the Superglobals service instead |
Response.php
| Line | Element | Reason |
|---|---|---|
| 153 | Response::__construct() | The param $config is no longer used. |
SiteURI.php
| Line | Element | Reason |
|---|---|---|
| 225 | SiteURI::setBaseURL() | |
| 233 | SiteURI::setURI() | |
| 317 | SiteURI::refreshPath() | This method will be private. |
| 75 | SiteURI::$segments | This property will be private. |
URI.php
| Line | Element | Reason |
|---|---|---|
| 276 | URI::setSilent() | Method not in PSR-7 |
| 307 | URI::setURI() | This method will be private. |
| 662 | URI::changeSchemeAndPath() | This method will be deleted. |
| 726 | URI::setScheme() | Use |
| 845 | URI::setBaseURL() | Use SiteURI instead. |
| 857 | URI::getBaseURL() | Use SiteURI instead. |
| 873 | URI::refreshPath() | This method will be private. |
| 47 | URI::$uriString | Not used. |
| 54 | URI::$baseURL | Use SiteURI instead. |
TimeLegacy.php
| Line | Element | Reason |
|---|---|---|
| 48 | TimeLegacy | Use Time instead. |
TimeTrait.php
| Line | Element | Reason |
|---|---|---|
| 299 | TimeTrait::instance() | Use createFromInstance() instead |
ImageException.php
| Line | Element | Reason |
|---|---|---|
| 107 | ImageException::forInvalidImageLibraryPath() | No longer used. |
AutoRouter.php
| Line | Element | Reason |
|---|---|---|
| 171 | AutoRouter::setTranslateURIDashes() | This method should be removed. |
| 245 | AutoRouter::setDirectory() | This method should be removed. |
RouteCollection.php
| Line | Element | Reason |
|---|---|---|
| 1260 | RouteCollection::localizeRoute() | Unused. |
| 1314 | RouteCollection::fillRouteParams() | Unused. Now uses buildReverseRoute(). |
Router.php
| Line | Element | Reason |
|---|---|---|
| 389 | Router::setTranslateURIDashes() | This method should be removed. |
| 608 | Router::validateRequest() | this function name does not properly describe its behavior so it has been deprecated |
| 622 | Router::scanControllers() | Not used. Moved to AutoRouter class. |
| 670 | Router::setDirectory() | This method should be removed. |
| 688 | Router::isValidSegment() | Moved to AutoRouter class. |
| 732 | Router::setDefaultController() | This was an unnecessary method, so it is no longer used. |
SecurityException.php
| Line | Element | Reason |
|---|---|---|
| 80 | SecurityException::forInvalidSameSite() | Use |
Security.php
| Line | Element | Reason |
|---|---|---|
| 437 | Security::sanitizeFilename() | Use |
| 54 | Security::$csrfProtection | Use $this->config->csrfProtection. |
| 63 | Security::$tokenRandomize | Use $this->config->tokenRandomize. |
| 83 | Security::$tokenName | Use $this->config->tokenName. |
| 94 | Security::$headerName | Use $this->config->headerName. |
| 123 | Security::$expires | Use $this->config->expires. |
| 134 | Security::$regenerate | Use $this->config->regenerate. |
| 145 | Security::$redirect | Use $this->config->redirect. |
| 162 | Security::$samesite |
|
SecurityInterface.php
| Line | Element | Reason |
|---|---|---|
| 74 | SecurityInterface::sanitizeFilename() | Use |
SessionException.php
| Line | Element | Reason |
|---|---|---|
| 67 | SessionException::forInvalidSameSiteSetting() |
MockCodeIgniter.php
| Line | Element | Reason |
|---|---|---|
| 27 | MockCodeIgniter::callExit() | No longer Used. Moved to index.php. |