Commit f295e9aa authored by Yassine Doghri's avatar Yassine Doghri
Browse files

chore: update CodeIgniter to v4.5.6

+ update php dependencies to latest
parent fc2e7a0d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -50,11 +50,12 @@ Events::on('pre_system', static function (): void {
     */
    if (CI_DEBUG && ! is_cli()) {
        Events::on('DBQuery', Database::class . '::collect');
        Services::toolbar()->respond();
        service('toolbar')
            ->respond();

        // Hot Reload route - for framework use on the hot reloader.
        if (ENVIRONMENT === 'development') {
            Services::routes()->get('__hot-reload', static function (): void {
            service('routes')->get('__hot-reload', static function (): void {
                (new HotReloader())->run();
            });
        }
+1 −1
Original line number Diff line number Diff line
@@ -74,6 +74,6 @@ class Format extends BaseConfig
     */
    public function getFormatter(string $mime): FormatterInterface
    {
        return Services::format()->getFormatter($mime);
        return service('format')->getFormatter($mime);
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class Paths
     * This variable must contain the name of the directory that
     * contains the view files used by your application. By
     * default this is in `app/Views`. This value
     * is used when no value is provided to `Services::renderer()`.
     * is used when no value is provided to `service('renderer')`.
     */
    public string $viewDirectory = __DIR__ . '/../Views';
}
+1 −2
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use CodeIgniter\HTTP\URI;
use Config\Services;
use Modules\Analytics\Config\Analytics;
use Modules\PremiumPodcasts\Entities\Subscription;
use Modules\PremiumPodcasts\Models\SubscriptionModel;
@@ -124,7 +123,7 @@ class EpisodeAudioController extends Controller
            }
        }

        $session = Services::session();
        $session = service('session');

        $serviceName = '';
        if ($this->request->getGet('_from')) {
+1 −2
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ use CodeIgniter\Database\BaseBuilder;
use CodeIgniter\Exceptions\PageNotFoundException;
use CodeIgniter\HTTP\ResponseInterface;
use Config\Embed;
use Config\Services;
use Modules\Analytics\AnalyticsTrait;
use Modules\Fediverse\Objects\OrderedCollectionObject;
use Modules\Fediverse\Objects\OrderedCollectionPage;
@@ -277,7 +276,7 @@ class EpisodeController extends BaseController

        $this->registerPodcastWebpageHit($this->episode->podcast_id);

        $session = Services::session();
        $session = service('session');

        if (service('superglobals')->server('HTTP_REFERER') !== null) {
            $session->set('embed_domain', parse_url(service('superglobals')->server('HTTP_REFERER'), PHP_URL_HOST));
Loading