start(); $csrf = new Csrf($session); $database = new Database($config['db']); $view = new View($rootPath, [ 'config' => $config, 'session' => $session, 'csrf' => $csrf, ]); return [ 'rootPath' => $rootPath, 'config' => $config, 'session' => $session, 'csrf' => $csrf, 'database' => $database, 'view' => $view, ];