Loading app/Config/Events.php +3 −2 Original line number Diff line number Diff line Loading @@ -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(); }); } Loading app/Config/Format.php +1 −1 Original line number Diff line number Diff line Loading @@ -74,6 +74,6 @@ class Format extends BaseConfig */ public function getFormatter(string $mime): FormatterInterface { return Services::format()->getFormatter($mime); return service('format')->getFormatter($mime); } } app/Config/Paths.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'; } app/Controllers/EpisodeAudioController.php +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -124,7 +123,7 @@ class EpisodeAudioController extends Controller } } $session = Services::session(); $session = service('session'); $serviceName = ''; if ($this->request->getGet('_from')) { Loading app/Controllers/EpisodeController.php +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading
app/Config/Events.php +3 −2 Original line number Diff line number Diff line Loading @@ -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(); }); } Loading
app/Config/Format.php +1 −1 Original line number Diff line number Diff line Loading @@ -74,6 +74,6 @@ class Format extends BaseConfig */ public function getFormatter(string $mime): FormatterInterface { return Services::format()->getFormatter($mime); return service('format')->getFormatter($mime); } }
app/Config/Paths.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'; }
app/Controllers/EpisodeAudioController.php +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -124,7 +123,7 @@ class EpisodeAudioController extends Controller } } $session = Services::session(); $session = service('session'); $serviceName = ''; if ($this->request->getGet('_from')) { Loading
app/Controllers/EpisodeController.php +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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