di = $di; } public function getDi(): ?\Pimple\Container { return $this->di; } public function register(\Box_App &$app) { $app->get('/dashboard', 'get_dashboard_index', [], static::class); } public function get_dashboard_index(\Box_App $app) { $this->di['is_client_logged']; return $app->render('mod_dashboard_index'); } }