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. |
BaseModel.php
| Line | Element | Reason |
|---|---|---|
| 1684 | BaseModel::transformDataRowToArray() | Since 4.6.4, temporary solution - will be removed in 4.7 |
BaseHandler.php
| Line | Element | Reason |
|---|---|---|
| 36 | BaseHandler::RESERVED_CHARACTERS | in favor of the Cache config |
FileHandler.php
| Line | Element | Reason |
|---|---|---|
| 279 | FileHandler::writeFile() | Use |
| 314 | FileHandler::deleteFiles() | Use |
| 358 | FileHandler::getDirFileInfo() | Use |
| 417 | 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 |
|---|---|---|
| 206 | CodeIgniter::resolvePlatformExtensions() | Moved to system/bootstrap.php. |
| 234 | CodeIgniter::initializeKint() | Moved to Autoloader. |
| 251 | CodeIgniter::autoloadKint() | Moved to Autoloader. |
| 276 | CodeIgniter::configureKint() | Moved to Autoloader. |
| 449 | CodeIgniter::handleRequest() | $returnResponse is deprecated. |
| 565 | CodeIgniter::detectEnvironment() | No longer used. Moved to index.php and spark. |
| 583 | CodeIgniter::bootstrapEnvironment() | Moved to system/bootstrap.php. |
| 690 | CodeIgniter::forceSecureAccess() | No longer used. Moved to ForceHTTPS filter. |
| 709 | CodeIgniter::displayCache() | PageCache required filter is used. No longer used. |
| 709 | CodeIgniter::displayCache() | The parameter $config is deprecated. No longer used. |
| 732 | CodeIgniter::cache() | Moved to ResponseCache::setTtl(). No longer used. |
| 745 | CodeIgniter::cachePage() | No longer used. |
| 775 | CodeIgniter::generateCacheName() | No longer used. |
| 795 | CodeIgniter::displayPerformanceMetrics() | PerformanceMetrics required filter is used. No longer used. |
| 854 | CodeIgniter::determinePath() | No longer used. |
| 999 | CodeIgniter::gatherOutput() | $cacheConfig is deprecated. |
| 1123 | 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 |
|---|---|---|
| 184 | 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 |
|---|---|---|
| 549 | Connection::getError() | Use |
Forge.php
| Line | Element | Reason |
|---|---|---|
| 104 | Forge::$createTableIfStr | This is no longer used. |
Exceptions.php
| Line | Element | Reason |
|---|---|---|
| 329 | Exceptions::determineView() | No longer used. Moved to ExceptionHandler. |
| 365 | Exceptions::render() | No longer used. Moved to BaseExceptionHandler. |
| 407 | Exceptions::collectVars() | No longer used. Moved to BaseExceptionHandler. |
| 442 | Exceptions::maskSensitiveData() | No longer used. Moved to BaseExceptionHandler. |
| 458 | Exceptions::maskData() | No longer used. Moved to BaseExceptionHandler. |
| 546 | Exceptions::cleanPath() | Use dedicated |
| 563 | Exceptions::describeMemory() | No longer used. Moved to BaseExceptionHandler. |
| 583 | 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 |
Entity.php
| Line | Element | Reason |
|---|---|---|
| 323 | Entity::setAttributes() | Use injectRawData() instead. |
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 |
|---|---|---|
| 100 | 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. |
text_helper.php
| Line | Element | Reason |
|---|---|---|
| 553 | random_string() | The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure. |
HoneypotException.php
| Line | Element | Reason |
|---|---|---|
| 47 | HoneypotException::forNoHiddenValue() | Never used. |
HTTPException.php
| Line | Element | Reason |
|---|---|---|
| 229 | HTTPException::forInvalidSameSiteSetting() | Use |
IncomingRequest.php
| Line | Element | Reason |
|---|---|---|
| 212 | IncomingRequest::detectURI() | No longer used. |
| 223 | IncomingRequest::detectPath() | Moved to SiteURIFactory. |
| 246 | IncomingRequest::parseRequestURI() | Moved to SiteURIFactory. |
| 306 | IncomingRequest::parseQueryString() | Moved to SiteURIFactory. |
| 421 | IncomingRequest::setPath() | This method will be private. The parameter $config is deprecated. No longer used. |
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 |
|---|---|---|
| 218 | RequestTrait::getEnv() | This method does not work from the beginning. Use |
| 44 | RequestTrait::$ipAddress | Will become private in a future release |
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 |
|---|---|---|
| 275 | URI::setSilent() | Method not in PSR-7 |
| 306 | URI::setURI() | This method will be private. |
| 661 | URI::changeSchemeAndPath() | This method will be deleted. |
| 725 | URI::setScheme() | Use |
| 844 | URI::setBaseURL() | Use SiteURI instead. |
| 856 | URI::getBaseURL() | Use SiteURI instead. |
| 872 | URI::refreshPath() | This method will be private. |
| 46 | URI::$uriString | Not used. |
| 53 | URI::$baseURL | Use SiteURI instead. |
TimeLegacy.php
| Line | Element | Reason |
|---|---|---|
| 49 | TimeLegacy | Use Time instead. |
TimeTrait.php
| Line | Element | Reason |
|---|---|---|
| 301 | TimeTrait::instance() | Use createFromInstance() instead |
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 |
|---|---|---|
| 362 | Router::setTranslateURIDashes() | This method should be removed. |
| 581 | Router::validateRequest() | this function name does not properly describe its behavior so it has been deprecated |
| 595 | Router::scanControllers() | Not used. Moved to AutoRouter class. |
| 643 | Router::setDirectory() | This method should be removed. |
| 661 | Router::isValidSegment() | Moved to AutoRouter class. |
| 705 | 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 |
|---|---|---|
| 435 | Security::sanitizeFilename() | Use |
| 53 | Security::$csrfProtection | Use $this->config->csrfProtection. |
| 62 | Security::$tokenRandomize | Use $this->config->tokenRandomize. |
| 82 | Security::$tokenName | Use $this->config->tokenName. |
| 93 | Security::$headerName | Use $this->config->headerName. |
| 122 | Security::$expires | Use $this->config->expires. |
| 133 | Security::$regenerate | Use $this->config->regenerate. |
| 144 | Security::$redirect | Use $this->config->redirect. |
| 161 | Security::$samesite |
|
SecurityInterface.php
| Line | Element | Reason |
|---|---|---|
| 74 | SecurityInterface::sanitizeFilename() | Use |
SessionException.php
| Line | Element | Reason |
|---|---|---|
| 67 | SessionException::forInvalidSameSiteSetting() |
Session.php
| Line | Element | Reason |
|---|---|---|
| 274 | Session::stop() | Use destroy() instead. |
| 50 | Session::$sessionDriverName | Use $this->config->driver. |
| 59 | Session::$sessionCookieName | Use $this->config->cookieName. |
| 69 | Session::$sessionExpiration | Use $this->config->expiration. |
| 87 | Session::$sessionSavePath | Use $this->config->savePath. |
| 99 | Session::$sessionMatchIP | Use $this->config->matchIP. |
| 108 | Session::$sessionTimeToUpdate | Use $this->config->timeToUpdate. |
| 119 | Session::$sessionRegenerateDestroy | Use $this->config->regenerateDestroy. |
| 136 | Session::$cookieDomain | No longer used. |
| 146 | Session::$cookiePath | No longer used. |
| 155 | Session::$cookieSecure | No longer used. |
| 165 | Session::$cookieSameSite | No longer used. |
MockCodeIgniter.php
| Line | Element | Reason |
|---|---|---|
| 27 | MockCodeIgniter::callExit() | No longer Used. Moved to index.php. |