CodeIgniter v4.7 API

Deprecated

Table of Contents

system/Autoloader/Autoloader.php
system/Cache/Handlers/BaseHandler.php
system/Cache/Handlers/FileHandler.php
system/CLI/BaseCommand.php
system/CLI/CLI.php
system/CLI/GeneratorTrait.php
system/CodeIgniter.php
system/Config/BaseService.php
system/Config/Services.php
system/Database/BaseBuilder.php
system/Database/BaseConnection.php
system/Database/Forge.php
system/Database/OCI8/Forge.php
system/Database/Seeder.php
system/Database/SQLSRV/Connection.php
system/Database/SQLSRV/Forge.php
system/Debug/Exceptions.php
system/Debug/Toolbar/Collectors/BaseCollector.php
system/Debug/Toolbar/Collectors/Views.php
system/Encryption/Handlers/SodiumHandler.php
system/Exceptions/DownloadException.php
system/Exceptions/FrameworkException.php
system/Files/File.php
system/Filters/Filters.php
system/Honeypot/Exceptions/HoneypotException.php
system/HTTP/ContentSecurityPolicy.php
system/HTTP/Exceptions/HTTPException.php
system/HTTP/Message.php
system/HTTP/OutgoingRequest.php
system/HTTP/Request.php
system/HTTP/RequestTrait.php
system/HTTP/Response.php
system/HTTP/SiteURI.php
system/HTTP/URI.php
system/I18n/TimeLegacy.php
system/I18n/TimeTrait.php
system/Images/Exceptions/ImageException.php
system/Router/AutoRouter.php
system/Router/RouteCollection.php
system/Router/Router.php
system/Security/Exceptions/SecurityException.php
system/Security/Security.php
system/Security/SecurityInterface.php
system/Session/Exceptions/SessionException.php
system/Test/Mock/MockCodeIgniter.php

Autoloader.php

Line Element Reason
359 Autoloader::sanitizeFilename()

No longer used. See https://github.com/codeigniter4/CodeIgniter4/issues/7055

475 Autoloader::discoverComposerNamespaces()

No longer used.

BaseHandler.php

Line Element Reason
32 BaseHandler::RESERVED_CHARACTERS

in favor of the Cache config

FileHandler.php

Line Element Reason
240 FileHandler::writeFile()

Use write_file() instead.

275 FileHandler::deleteFiles()

Use delete_files() instead.

319 FileHandler::getDirFileInfo()

Use get_dir_file_info() instead.

378 FileHandler::getFileInfo()

Use get_file_info() instead.

BaseCommand.php

Line Element Reason
205 BaseCommand::getPad()

Use setPad() instead.

CLI.php

Line Element Reason
546 CLI::isWindows()

Use is_windows() instead

41 CLI::$readline_support

Should be protected, and no longer used.

51 CLI::$wait_msg

Should be protected.

GeneratorTrait.php

Line Element Reason
110 GeneratorTrait::execute()

use generateClass() instead

CodeIgniter.php

Line Element Reason
241 CodeIgniter::initializeKint()

Moved to Autoloader.

258 CodeIgniter::autoloadKint()

Moved to Autoloader.

283 CodeIgniter::configureKint()

Moved to Autoloader.

456 CodeIgniter::handleRequest()

$returnResponse is deprecated.

583 CodeIgniter::detectEnvironment()

No longer used. Moved to index.php and spark.

601 CodeIgniter::bootstrapEnvironment()

Moved to system/bootstrap.php.

706 CodeIgniter::forceSecureAccess()

No longer used. Moved to ForceHTTPS filter.

725 CodeIgniter::displayCache()

PageCache required filter is used. No longer used.

725 CodeIgniter::displayCache()

The parameter $config is deprecated. No longer used.

748 CodeIgniter::cache()

Moved to ResponseCache::setTtl(). No longer used.

761 CodeIgniter::cachePage()

No longer used.

793 CodeIgniter::generateCacheName()

No longer used.

813 CodeIgniter::displayPerformanceMetrics()

PerformanceMetrics required filter is used. No longer used.

872 CodeIgniter::determinePath()

No longer used.

1038 CodeIgniter::gatherOutput()

$cacheConfig is deprecated.

1162 CodeIgniter::callExit()

No longer Used. Moved to index.php.

135 CodeIgniter::$cacheTTL

Moved to ResponseCache::$ttl. No longer used.

156 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
2289 BaseBuilder::setInsertBatch()
2749 BaseBuilder::setUpdateBatch()
3611 BaseBuilder::cleanClone()

BaseConnection.php

Line Element Reason
199 BaseConnection::$strictOn

Will move to MySQLi\Connection.

Forge.php

Line Element Reason
599 Forge::_createTable()

$ifNotExists is no longer used, and will be removed.

120 Forge::$createTableIfStr

This is no longer used.

Forge.php

Line Element Reason
42 Forge::$createTableIfStr

This is no longer used.

Seeder.php

Line Element Reason
74 Seeder::$faker

Connection.php

Line Element Reason
512 Connection::getError()

Use error() instead.

Forge.php

Line Element Reason
94 Forge::$createTableIfStr

This is no longer used.

Exceptions.php

Line Element Reason
280 Exceptions::determineView()

No longer used. Moved to ExceptionHandler.

316 Exceptions::render()

No longer used. Moved to BaseExceptionHandler.

360 Exceptions::collectVars()

No longer used. Moved to BaseExceptionHandler.

396 Exceptions::maskSensitiveData()

No longer used. Moved to BaseExceptionHandler.

413 Exceptions::maskData()

No longer used. Moved to BaseExceptionHandler.

503 Exceptions::cleanPath()

Use dedicated clean_path() function.

520 Exceptions::describeMemory()

No longer used. Moved to BaseExceptionHandler.

540 Exceptions::highlightFile()

No longer used. Moved to BaseExceptionHandler.

43 Exceptions::$ob_level

No longer used. Moved to BaseExceptionHandler.

53 Exceptions::$viewPath

No longer used. Moved to BaseExceptionHandler.

BaseCollector.php

Line Element Reason
187 BaseCollector::cleanPath()

Use the dedicated clean_path() function.

Views.php

Line Element Reason
78 Views::$views

Unused.

SodiumHandler.php

Line Element Reason
137 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
96 File::getSizeByUnit()

Use getSizeByBinaryUnit() or getSizeByMetricUnit() instead

Filters.php

Line Element Reason
171 Filters::discoverFilters()

Use Registrar instead.

652 Filters::getArguments()

Already does not work.

132 Filters::$arguments

No longer used.

141 Filters::$argumentsClass

No longer used.

HoneypotException.php

Line Element Reason
48 HoneypotException::forNoHiddenValue()

Never used.

ContentSecurityPolicy.php

Line Element Reason
284 ContentSecurityPolicy::$nonces

Never used.

HTTPException.php

Line Element Reason
229 HTTPException::forInvalidSameSiteSetting()

Use CookieException::forInvalidSameSite() instead.

Message.php

Line Element Reason
72 Message::getHeaders()

Use Message::headers() to make room for PSR-7

89 Message::getHeader()

Use Message::header() to make room for PSR-7

OutgoingRequest.php

Line Element Reason
86 OutgoingRequest::setMethod()

Use withMethod() instead for immutability

Request.php

Line Element Reason
52 Request::setMethod()

Use withMethod() instead for immutability

RequestTrait.php

Line Element Reason
246 RequestTrait::getEnv()

This method does not work from the beginning. Use env().

378 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
151 Response::__construct()

The param $config is no longer used.

SiteURI.php

Line Element Reason
228 SiteURI::setBaseURL()
236 SiteURI::setURI()
322 SiteURI::refreshPath()

This method will be private.

75 SiteURI::$segments

This property will be private.

URI.php

Line Element Reason
274 URI::setSilent()

Method not in PSR-7

305 URI::setURI()

This method will be private.

660 URI::changeSchemeAndPath()

This method will be deleted.

722 URI::setScheme()

Use withScheme() instead.

841 URI::setBaseURL()

Use SiteURI instead.

853 URI::getBaseURL()

Use SiteURI instead.

869 URI::refreshPath()

This method will be private.

45 URI::$uriString

Not used.

52 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
164 AutoRouter::setTranslateURIDashes()

This method should be removed.

239 AutoRouter::setDirectory()

This method should be removed.

RouteCollection.php

Line Element Reason
1147 RouteCollection::localizeRoute()

Unused.

1183 RouteCollection::fillRouteParams()

Unused. Now uses buildReverseRoute().

Router.php

Line Element Reason
385 Router::setTranslateURIDashes()

This method should be removed.

606 Router::validateRequest()

this function name does not properly describe its behavior so it has been deprecated

620 Router::scanControllers()

Not used. Moved to AutoRouter class.

668 Router::setDirectory()

This method should be removed.

686 Router::isValidSegment()

Moved to AutoRouter class.

730 Router::setDefaultController()

This was an unnecessary method, so it is no longer used.

SecurityException.php

Line Element Reason
80 SecurityException::forInvalidSameSite()

Use CookieException::forInvalidSameSite() instead.

Security.php

Line Element Reason
475 Security::sanitizeFilename()

Use sanitize_filename() instead

52 Security::$csrfProtection

Use $this->config->csrfProtection.

61 Security::$tokenRandomize

Use $this->config->tokenRandomize.

81 Security::$tokenName

Use $this->config->tokenName.

92 Security::$headerName

Use $this->config->headerName.

121 Security::$expires

Use $this->config->expires.

132 Security::$regenerate

Use $this->config->regenerate.

143 Security::$redirect

Use $this->config->redirect.

160 Security::$samesite

Config\Cookie $samesite property is used.

SecurityInterface.php

Line Element Reason
74 SecurityInterface::sanitizeFilename()

Use sanitize_filename() instead

SessionException.php

Line Element Reason
67 SessionException::forInvalidSameSiteSetting()

MockCodeIgniter.php

Line Element Reason
27 MockCodeIgniter::callExit()

No longer Used. Moved to index.php.

Search results