Skip to content

Commit 02ac0bf

Browse files
committed
refactor: Remove deprecated CodeIgniter::resolvePlatformExtensions()
1 parent 4a7448e commit 02ac0bf

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

system/CodeIgniter.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use CodeIgniter\Cache\ResponseCache;
1616
use CodeIgniter\Debug\Timer;
1717
use CodeIgniter\Events\Events;
18-
use CodeIgniter\Exceptions\FrameworkException;
1918
use CodeIgniter\Exceptions\LogicException;
2019
use CodeIgniter\Exceptions\PageNotFoundException;
2120
use CodeIgniter\Filters\Filters;
@@ -192,38 +191,6 @@ public function initialize()
192191
date_default_timezone_set($this->config->appTimezone ?? 'UTC');
193192
}
194193

195-
/**
196-
* Checks system for missing required PHP extensions.
197-
*
198-
* @return void
199-
*
200-
* @throws FrameworkException
201-
*
202-
* @codeCoverageIgnore
203-
*
204-
* @deprecated 4.5.0 Moved to system/bootstrap.php.
205-
*/
206-
protected function resolvePlatformExtensions()
207-
{
208-
$requiredExtensions = [
209-
'intl',
210-
'json',
211-
'mbstring',
212-
];
213-
214-
$missingExtensions = [];
215-
216-
foreach ($requiredExtensions as $extension) {
217-
if (! extension_loaded($extension)) {
218-
$missingExtensions[] = $extension;
219-
}
220-
}
221-
222-
if ($missingExtensions !== []) {
223-
throw FrameworkException::forMissingExtension(implode(', ', $missingExtensions));
224-
}
225-
}
226-
227194
/**
228195
* Initializes Kint
229196
*

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Message Changes
115115
Changes
116116
*******
117117

118+
- **CodeIgniter:** The deprecated ``CodeIgniter\CodeIgniter::resolvePlatformExtensions()`` has been removed.
118119
- **Cookie:** The ``CookieInterface::EXPIRES_FORMAT`` has been changed to ``D, d M Y H:i:s T`` to follow the recommended format in RFC 7231.
119120
- **Format:** Added support for configuring ``json_encode()`` maximum depth via ``Config\Format::$jsonEncodeDepth``.
120121
- **Paths:** Added support for changing the location of the ``.env`` file via the ``Paths::$envDirectory`` property.

0 commit comments

Comments
 (0)