12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- declare(strict_types=1);
- namespace OC\Core\Controller;
- use OCP\AppFramework\Controller;
- use OCP\AppFramework\Http\Attribute\FrontpageRoute;
- use OCP\AppFramework\Http\Attribute\OpenAPI;
- use OCP\AppFramework\Http\Response;
- use OCP\AppFramework\Http\StandaloneTemplateResponse;
- use OCP\IInitialStateService;
- use OCP\IRequest;
- use OCP\IURLGenerator;
- class RecommendedAppsController extends Controller {
- public function __construct(
- IRequest $request,
- public IURLGenerator $urlGenerator,
- private IInitialStateService $initialStateService,
- ) {
- parent::__construct('core', $request);
- }
-
-
- public function index(): Response {
- $defaultPageUrl = $this->urlGenerator->linkToDefaultPageUrl();
- $this->initialStateService->provideInitialState('core', 'defaultPageUrl', $defaultPageUrl);
- return new StandaloneTemplateResponse($this->appName, 'recommendedapps', [], 'guest');
- }
- }
|