Fr3nch13/CakePHP Utilities

Deprecated

Table of Contents

vendor/cakephp/cakephp/src/Cache/Cache.php
vendor/cakephp/cakephp/src/Console/Shell.php
vendor/cakephp/cakephp/src/Console/ShellDispatcher.php
vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php
vendor/cakephp/cakephp/src/Controller/Component/PaginatorComponent.php
vendor/cakephp/cakephp/src/Controller/Component/RequestHandlerComponent.php
vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php
vendor/cakephp/cakephp/src/Controller/Controller.php
vendor/cakephp/cakephp/src/Core/ClassLoader.php
vendor/cakephp/cakephp/src/Core/Exception/CakeException.php
vendor/cakephp/cakephp/src/Database/Connection.php
vendor/cakephp/cakephp/src/Database/Driver/Mysql.php
vendor/cakephp/cakephp/src/Database/Driver/Sqlite.php
vendor/cakephp/cakephp/src/Database/Driver.php
vendor/cakephp/cakephp/src/Database/DriverInterface.php
vendor/cakephp/cakephp/src/Database/Expression/CaseExpression.php
vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php
vendor/cakephp/cakephp/src/Database/Query.php
vendor/cakephp/cakephp/src/Database/Schema/TableSchema.php
vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php
vendor/cakephp/cakephp/src/Database/Type/DateType.php
vendor/cakephp/cakephp/src/Datasource/EntityTrait.php
vendor/cakephp/cakephp/src/Datasource/ModelAwareTrait.php
vendor/cakephp/cakephp/src/Error/BaseErrorHandler.php
vendor/cakephp/cakephp/src/Error/Debugger.php
vendor/cakephp/cakephp/src/Error/ErrorLogger.php
vendor/cakephp/cakephp/src/Error/ErrorLoggerInterface.php
vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php
vendor/cakephp/cakephp/src/Filesystem/File.php
vendor/cakephp/cakephp/src/Filesystem/Folder.php
vendor/cakephp/cakephp/src/Form/Form.php
vendor/cakephp/cakephp/src/Http/Cookie/Cookie.php
vendor/cakephp/cakephp/src/Http/Exception/RedirectException.php
vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php
vendor/cakephp/cakephp/src/Http/Middleware/DoublePassDecoratorMiddleware.php
vendor/cakephp/cakephp/src/Http/Response.php
vendor/cakephp/cakephp/src/Http/ServerRequest.php
vendor/cakephp/cakephp/src/I18n/Date.php
vendor/cakephp/cakephp/src/I18n/Number.php
vendor/cakephp/cakephp/src/I18n/Time.php
vendor/cakephp/cakephp/src/Log/Engine/BaseLog.php
vendor/cakephp/cakephp/src/Log/Formatter/LegacySyslogFormatter.php
vendor/cakephp/cakephp/src/Mailer/Email.php
vendor/cakephp/cakephp/src/Mailer/Mailer.php
vendor/cakephp/cakephp/src/ORM/Association.php
vendor/cakephp/cakephp/src/ORM/Behavior.php
vendor/cakephp/cakephp/src/ORM/SaveOptionsBuilder.php
vendor/cakephp/cakephp/src/ORM/Table.php
vendor/cakephp/cakephp/src/ORM/TableRegistry.php
vendor/cakephp/cakephp/src/Routing/Exception/RedirectException.php
vendor/cakephp/cakephp/src/Routing/Router.php
vendor/cakephp/cakephp/src/TestSuite/ConsoleIntegrationTestCase.php
vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php
vendor/cakephp/cakephp/src/TestSuite/IntegrationTestCase.php
vendor/cakephp/cakephp/src/TestSuite/TestCase.php
vendor/cakephp/cakephp/src/Validation/ValidatableInterface.php
vendor/cakephp/cakephp/src/Validation/Validation.php
vendor/cakephp/cakephp/src/Validation/Validator.php
vendor/cakephp/cakephp/src/View/Form/ArrayContext.php
vendor/cakephp/cakephp/src/View/Form/EntityContext.php
vendor/cakephp/cakephp/src/View/Form/FormContext.php
vendor/cakephp/cakephp/src/View/Form/NullContext.php
vendor/cakephp/cakephp/src/View/Helper/NumberHelper.php
vendor/cakephp/cakephp/src/View/SerializedView.php
vendor/cakephp/chronos/src/MutableDate.php
vendor/cakephp/chronos/src/MutableDateTime.php
vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
vendor/composer/InstalledVersions.php
vendor/laminas/laminas-diactoros/src/functions/create_uploaded_file.legacy.php
vendor/laminas/laminas-diactoros/src/functions/marshal_headers_from_sapi.legacy.php
vendor/laminas/laminas-diactoros/src/functions/marshal_method_from_sapi.legacy.php
vendor/laminas/laminas-diactoros/src/functions/marshal_protocol_version_from_sapi.legacy.php
vendor/laminas/laminas-diactoros/src/functions/marshal_uri_from_sapi.legacy.php
vendor/laminas/laminas-diactoros/src/functions/marshal_uri_from_sapi.php
vendor/laminas/laminas-diactoros/src/functions/normalize_server.legacy.php
vendor/laminas/laminas-diactoros/src/functions/normalize_uploaded_files.legacy.php
vendor/laminas/laminas-diactoros/src/functions/parse_cookie_header.legacy.php

Cache.php

Line Element Reason
207 Cache::engine()

Use instead. This method will be removed in 5.0.

Shell.php

Line Element Reason
43 Shell

ShellDispatcher and Shell will be removed in 5.0

ShellDispatcher.php

Line Element Reason
35 ShellDispatcher

ShellDispatcher and Shell will be removed in 5.0

AuthComponent.php

Line Element Reason
47 AuthComponent

Use the cakephp/authentication and cakephp/authorization plugins instead.

PaginatorComponent.php

Line Element Reason
40 PaginatorComponent

Use Cake\Datasource\Paging\Paginator directly.

RequestHandlerComponent.php

Line Element Reason
45 RequestHandlerComponent

See the 4.4 migration guide for how to upgrade. https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html#requesthandlercomponent

258 RequestHandlerComponent::accepts()

Use ContentTypeNegotiation::prefersChoice() or Controller::getViewClasses() instead.

346 RequestHandlerComponent::prefers()

Use Controller::getViewClasses() instead.

SecurityComponent.php

Line Element Reason
43 SecurityComponent

Use instead, for form tampering protection or to enforce use of HTTPS (SSL) for requests.

Controller.php

Line Element Reason
724 Controller::setAction()

Refactor your code use redirect() instead of forwarding actions.

ClassLoader.php

Line Element Reason
23 ClassLoader

Use composer to generate autoload files instead.

CakeException.php

Line Element Reason
98 CakeException::responseHeader()

Use HttpException::setHeaders() instead. Response headers should be set for HttpException only.

Connection.php

Line Element Reason
192 Connection::setDriver()

Setting the driver is deprecated. Use the connection config instead.

696 Connection::supportsDynamicConstraints()

Fixtures no longer dynamically drop and create constraints.

Mysql.php

Line Element Reason
312 Mysql::supportsCTEs()

Use supports(DriverInterface::FEATURE_CTE) instead

325 Mysql::supportsNativeJson()

Use supports(DriverInterface::FEATURE_JSON) instead

338 Mysql::supportsWindowFunctions()

Use supports(DriverInterface::FEATURE_WINDOW) instead

Sqlite.php

Line Element Reason
365 Sqlite::supportsCTEs()

Use supports(DriverInterface::FEATURE_CTE) instead

378 Sqlite::supportsWindowFunctions()

Use supports(DriverInterface::FEATURE_WINDOW) instead

Driver.php

Line Element Reason
292 Driver::supportsCTEs()

Use supports(DriverInterface::FEATURE_QUOTE) instead

315 Driver::supportsQuoting()

Use supports(DriverInterface::FEATURE_QUOTE) instead

DriverInterface.php

Line Element Reason
193 DriverInterface::supportsDynamicConstraints()

Fixtures no longer dynamically drop and create constraints.

201 DriverInterface::supportsSavePoints()

Use supports(DriverInterface::FEATURE_SAVEPOINT) instead

218 DriverInterface::supportsQuoting()

Use supports(DriverInterface::FEATURE_QUOTE) instead

CaseExpression.php

Line Element Reason
29 CaseExpression

Use QueryExpression::case() or CaseStatementExpression instead

QueryExpression.php

Line Element Reason
344 QueryExpression::addCase()

Use QueryExpression::case() or CaseStatementExpression instead

512 QueryExpression::and_()

Use instead.

529 QueryExpression::or_()

Use instead.

669 QueryExpression::isCallable()

This method is unused.

Query.php

Line Element Reason
107 Query::$_selectParts

This property is unused.

118 Query::$_updateParts

This property is unused.

126 Query::$_deleteParts

This property is unused.

134 Query::$_insertParts

This property is unused.

TableSchema.php

Line Element Reason
523 TableSchema::primaryKey()

Renamed to .

DateTimeType.php

Line Element Reason
171 DateTimeType::setTimezone()

Use instead.

445 DateTimeType::useImmutable()

This method is no longer needed as using immutable datetime class is the default behavior.

491 DateTimeType::useMutable()

Using mutable datetime objects is deprecated.

DateType.php

Line Element Reason
67 DateType::useImmutable()

This method is no longer needed as using immutable datetime class is the default behavior.

85 DateType::useMutable()

Using mutable datetime objects is deprecated.

EntityTrait.php

Line Element Reason
458 EntityTrait::unsetProperty()

Use instead. Will be removed in 5.0.

ModelAwareTrait.php

Line Element Reason
33 ModelAwareTrait

Use Cake\ORM\Locator\LocatorAwareTrait instead.

98 ModelAwareTrait::loadModel()

Use LocatorAwareTrait::fetchTable() instead.

49 ModelAwareTrait::$modelClass

Use Cake\ORM\Locator\LocatorAwareTrait::$defaultTable instead.

BaseErrorHandler.php

Line Element Reason
205 BaseErrorHandler::wrapAndHandleException()

Unused method will be removed in 5.0

Debugger.php

Line Element Reason
846 Debugger::getOutputFormat()

Update your application so use ErrorTrap instead.

861 Debugger::setOutputFormat()

Update your application so use ErrorTrap instead.

916 Debugger::addFormat()

Update your application so use ErrorTrap instead.

945 Debugger::addRenderer()

Update your application so use ErrorTrap instead.

964 Debugger::outputError()

Update your application so use ErrorTrap instead.

ErrorLogger.php

Line Element Reason
109 ErrorLogger::logMessage()

Use logError instead.

132 ErrorLogger::log()

Use logException instead.

ErrorLoggerInterface.php

Line Element Reason
43 ErrorLoggerInterface::log()

Implement logException instead.

57 ErrorLoggerInterface::logMessage()

Implement logError instead.

ExceptionRenderer.php

Line Element Reason
26 ExceptionRenderer

Use Cake\Error\Renderer\WebExceptionRenderer instead.

File.php

Line Element Reason
27 File

Will be removed in 5.0.

Folder.php

Line Element Reason
32 Folder

Will be removed in 5.0.

Form.php

Line Element Reason
183 Form::schema()

Use / instead.

Cookie.php

Line Element Reason
435 Cookie::getStringValue()

Use instead.

RedirectException.php

Line Element Reason
58 RedirectException::addHeaders()

Use setHeaders() instead.

76 RedirectException::removeHeader()

Use setHeaders() instead.

CsrfProtectionMiddleware.php

Line Element Reason
187 CsrfProtectionMiddleware::whitelistCallback()

Use skipCheckCallback instead.

234 CsrfProtectionMiddleware::_createToken()

Use instead.

DoublePassDecoratorMiddleware.php

Line Element Reason
45 DoublePassDecoratorMiddleware

"Double pass" middleware are deprecated. Use a Closure or a class which implements Psr\Http\Server\MiddlewareInterface instead.

Response.php

Line Element Reason
995 Response::notModified()

Use withNotModified() instead.

1246 Response::checkNotModified()

Use isNotModified() and withNotModified() instead.

ServerRequest.php

Line Element Reason
1136 ServerRequest::parseAccept()

Use accepts() or ContentTypeNegotiation class instead.

1263 ServerRequest::input()

Use (string)$request->getBody() to get the raw PHP input as string; use BodyParserMiddleware to parse the request body so that it's available as array/object through $request->getParsedBody().

Date.php

Line Element Reason
29 Date

Use the immutable alternative FrozenDate instead.

Number.php

Line Element Reason
277 Number::defaultCurrency()

Use and instead.

Time.php

Line Element Reason
30 Time

Use the immutable alternative FrozenTime instead.

BaseLog.php

Line Element Reason
126 BaseLog::_format()

Call interpolate() directly from your log engine and format the message in a formatter.

LegacySyslogFormatter.php

Line Element Reason
22 LegacySyslogFormatter

Create a custom formatter and set it with formatter config instead.

Email.php

Line Element Reason
44 Email

This class will be removed in CakePHP 5.0, use instead.

52 Email::MESSAGE_HTML

Use Message::MESSAGE_HTML instead.

60 Email::MESSAGE_TEXT

Use Message::MESSAGE_TEXT instead.

68 Email::MESSAGE_BOTH

Use Message::MESSAGE_BOTH instead.

76 Email::EMAIL_PATTERN

Use Message::EMAIL_PATTERN instead.

Mailer.php

Line Element Reason
309 Mailer::set()

Use instead.

Association.php

Line Element Reason
254 Association::setName()

Changing the association name after object creation is no longer supported. The name should only be set through the constructor.

Behavior.php

Line Element Reason
189 Behavior::getTable()

Use table() instead.

SaveOptionsBuilder.php

Line Element Reason
31 SaveOptionsBuilder

Use a normal array for options instead.

Table.php

Line Element Reason
3046 Table::getSaveOptionsBuilder()

Use a normal array for options instead.

TableRegistry.php

Line Element Reason
93 TableRegistry::get()

Use instead. Will be removed in 5.0.

105 TableRegistry::exists()

Use instead. Will be removed in 5.0

118 TableRegistry::set()

Use instead. Will be removed in 5.0

130 TableRegistry::remove()

Use instead. Will be removed in 5.0

141 TableRegistry::clear()

Use instead. Will be removed in 5.0

RedirectException.php

Line Element Reason
36 RedirectException

Use instead.

Router.php

Line Element Reason
211 Router::connect()

Use the non-static method RouteBuilder::connect() instead.

838 Router::scope()

Use the non-static method RouteBuilder::scope() instead.

877 Router::prefix()

Use the non-static method RouteBuilder::prefix() instead.

914 Router::plugin()

Use the non-static method RouteBuilder::plugin() instead.

ConsoleIntegrationTestCase.php

Line Element Reason
26 ConsoleIntegrationTestCase

Will be removed in 5.0.0. Use instead

FixtureInjector.php

Line Element Reason
31 FixtureInjector

IntegrationTestCase.php

Line Element Reason
30 IntegrationTestCase

Will be removed in 5.0.0. Use instead.

TestCase.php

Line Element Reason
338 TestCase::loadFixtures()

Disabling auto-fixtures is deprecated and only available using FixtureInjector fixture system.

72 TestCase::$autoFixtures

autoFixtures is only used by deprecated fixture features. This property will be removed in 5.0

84 TestCase::$dropTables

dropTables is only used by deprecated fixture features. This property will be removed in 5.0

ValidatableInterface.php

Line Element Reason
24 ValidatableInterface

This interface is unused.

Validation.php

Line Element Reason
437 Validation::containsNonAlphaNumeric()

Use instead. Will be removed in 5.0

Validator.php

Line Element Reason
224 Validator::errors()

Renamed to .

779 Validator::allowEmpty()

Use , , , , , or instead.

1239 Validator::notEmpty()

Use , , , , or instead.

1736 Validator::containsNonAlphaNumeric()

Use instead. Will be removed in 5.0

2631 Validator::_fieldIsEmpty()

Use instead

ArrayContext.php

Line Element Reason
103 ArrayContext::primaryKey()

Renamed to .

EntityContext.php

Line Element Reason
173 EntityContext::primaryKey()

Renamed to .

FormContext.php

Line Element Reason
71 FormContext::primaryKey()

Renamed to .

NullContext.php

Line Element Reason
42 NullContext::primaryKey()

Renamed to .

NumberHelper.php

Line Element Reason
227 NumberHelper::defaultCurrency()

Use setDefaultCurrency()/getDefaultCurrency() instead.

SerializedView.php

Line Element Reason
34 SerializedView::$_responseType

Implement public static contentType(): string instead.

MutableDate.php

Line Element Reason
54 MutableDate

Use immutable \Cake\Chronos\ChronosDate instead

MutableDateTime.php

Line Element Reason
55 MutableDateTime

Use immutable \Cake\Chronos\Chronos instead

ComparisonTrait.php

Line Element Reason
72 ComparisonTrait::eq()

eq() is deprecated. Use equals() instead.

97 ComparisonTrait::ne()

ne() is deprecated. Use notEquals() instead.

122 ComparisonTrait::gt()

gt() is deprecated. Use greaterThan() instead.

147 ComparisonTrait::gte()

gte() is deprecated. Use greaterThanOrEquals() instead.

172 ComparisonTrait::lt()

lt() is deprecated. Use lessThan instead.

197 ComparisonTrait::lte()

lte() is deprecated. Use lessThanOrEquals() instead.

InstalledVersions.php

Line Element Reason
262 InstalledVersions::getRawData()

Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.

create_uploaded_file.legacy.php

Line Element Reason
15 createUploadedFile()

Use Laminas\Diactoros\createUploadedFile instead

marshal_headers_from_sapi.legacy.php

Line Element Reason
13 marshalHeadersFromSapi()

Use Laminas\Diactoros\marshalHeadersFromSapi instead

marshal_method_from_sapi.legacy.php

Line Element Reason
13 marshalMethodFromSapi()

Use Laminas\Diactoros\marshalMethodFromSapi instead

marshal_protocol_version_from_sapi.legacy.php

Line Element Reason
13 marshalProtocolVersionFromSapi()

Use Laminas\Diactoros\marshalProtocolVersionFromSapi instead

marshal_uri_from_sapi.legacy.php

Line Element Reason
15 marshalUriFromSapi()

Use Laminas\Diactoros\marshalUriFromSapi instead

marshal_uri_from_sapi.php

Line Element Reason
38 marshalUriFromSapi()

This function is deprecated as of 2.11.1, and will be removed in 3.0.0. As of 2.11.1, it is no longer used internally.

normalize_server.legacy.php

Line Element Reason
13 normalizeServer()

Use Laminas\Diactoros\normalizeServer instead

normalize_uploaded_files.legacy.php

Line Element Reason
13 normalizeUploadedFiles()

Use Laminas\Diactoros\normalizeUploadedFiles instead

parse_cookie_header.legacy.php

Line Element Reason
16 parseCookieHeader()

Use parseCookieHeader instead

Search results