Skip to content

Commit 07d3ef8

Browse files
authored
Merge pull request #8030 from kenjis/depreacte-CodeIgniter-displayCache-param
docs: deprecate CodeIgniter::displayCache() param
2 parents 586b9f2 + f8015f1 commit 07d3ef8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

system/CodeIgniter.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private function configureKint(): void
334334
* This is "the loop" if you will. The main entry point into the script
335335
* that gets the required class instances, fires off the filters,
336336
* tries to route the response, loads the controller and generally
337-
* makes all of the pieces work together.
337+
* makes all the pieces work together.
338338
*
339339
* @return ResponseInterface|void
340340
*/
@@ -703,6 +703,8 @@ protected function forceSecureAccess($duration = 31_536_000)
703703
* @return false|ResponseInterface
704704
*
705705
* @throws Exception
706+
*
707+
* @deprecated 4.4.2 The parameter $config is deprecated. No longer used.
706708
*/
707709
public function displayCache(Cache $config)
708710
{
@@ -722,7 +724,7 @@ public function displayCache(Cache $config)
722724
/**
723725
* Tells the app that the final output should be cached.
724726
*
725-
* @deprecated 4.4.0 Moved to ResponseCache::setTtl(). to No longer used.
727+
* @deprecated 4.4.0 Moved to ResponseCache::setTtl(). No longer used.
726728
*
727729
* @return void
728730
*/
@@ -794,7 +796,7 @@ public function displayPerformanceMetrics(string $output): string
794796
* match a route against the current URI. If the route is a
795797
* "redirect route", will also handle the redirect.
796798
*
797-
* @param RouteCollectionInterface|null $routes An collection interface to use in place
799+
* @param RouteCollectionInterface|null $routes A collection interface to use in place
798800
* of the config file.
799801
*
800802
* @return string|string[]|null Route filters, that is, the filters specified in the routes file

user_guide_src/source/changelogs/v4.4.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Deprecations
3434
details.
3535
- **CLI:** The public property ``CLI::$readline_support`` and ``CLI::$wait_msg``
3636
are deprecated. These methods will be protected.
37+
- **CodeIgniter:** The parameter ``$config`` for the ``displayCache()`` method is
38+
deprecated. It was not used.
3739

3840
Bugs Fixed
3941
**********

0 commit comments

Comments
 (0)