📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: SyncController.php
<?php namespace App\Controller; use App\Entity\User; use App\Model\GetSyncRequestDTO; use App\Service\Certificate\SyncCertificate; use App\Traits\RouteGeneratorTrait; use Psr\Log\LoggerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpKernel\Attribute\MapQueryString; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Attribute\CurrentUser; use Symfony\Component\HttpFoundation\RedirectResponse; class SyncController extends AbstractController { use RouteGeneratorTrait; #[Route('sync', name: 'sync', methods: ['GET'])] public function index( #[CurrentUser] ?User $user, #[MapQueryString] GetSyncRequestDTO $syncRequest, SyncCertificate $syncCertificate, LoggerInterface $logger, ): RedirectResponse { $currentUser = $user?->getNcLogin(); if (!$currentUser) { return $this->redirectToRoute('home'); } try { $syncCertificate->syncAll(); } catch (\Exception $e) { $logger->error('Sync certificates failed', ['exception' => $e]); //TODO:: show error message } return $this->redirectToRoute($syncRequest->referer, ['withoutSync' => (int)$syncRequest->withoutSync]); } }
Save