Skip to content

Commit

Permalink
Merge pull request #8030 from kenjis/depreacte-CodeIgniter-displayCac…
Browse files Browse the repository at this point in the history
…he-param

docs: deprecate CodeIgniter::displayCache() param
  • Loading branch information
kenjis authored Oct 13, 2023
2 parents 586b9f2 + f8015f1 commit 07d3ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private function configureKint(): void
* This is "the loop" if you will. The main entry point into the script
* that gets the required class instances, fires off the filters,
* tries to route the response, loads the controller and generally
* makes all of the pieces work together.
* makes all the pieces work together.
*
* @return ResponseInterface|void
*/
Expand Down Expand Up @@ -703,6 +703,8 @@ protected function forceSecureAccess($duration = 31_536_000)
* @return false|ResponseInterface
*
* @throws Exception
*
* @deprecated 4.4.2 The parameter $config is deprecated. No longer used.
*/
public function displayCache(Cache $config)
{
Expand All @@ -722,7 +724,7 @@ public function displayCache(Cache $config)
/**
* Tells the app that the final output should be cached.
*
* @deprecated 4.4.0 Moved to ResponseCache::setTtl(). to No longer used.
* @deprecated 4.4.0 Moved to ResponseCache::setTtl(). No longer used.
*
* @return void
*/
Expand Down Expand Up @@ -794,7 +796,7 @@ public function displayPerformanceMetrics(string $output): string
* match a route against the current URI. If the route is a
* "redirect route", will also handle the redirect.
*
* @param RouteCollectionInterface|null $routes An collection interface to use in place
* @param RouteCollectionInterface|null $routes A collection interface to use in place
* of the config file.
*
* @return string|string[]|null Route filters, that is, the filters specified in the routes file
Expand Down
2 changes: 2 additions & 0 deletions user_guide_src/source/changelogs/v4.4.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Deprecations
details.
- **CLI:** The public property ``CLI::$readline_support`` and ``CLI::$wait_msg``
are deprecated. These methods will be protected.
- **CodeIgniter:** The parameter ``$config`` for the ``displayCache()`` method is
deprecated. It was not used.

Bugs Fixed
**********
Expand Down

0 comments on commit 07d3ef8

Please sign in to comment.