first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace KupShop\OrderingBundle\Controller;
use KupShop\KupShopBundle\Exception\RedirectException;
use KupShop\OrderingBundle\View\IsicView;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class IsicController extends AbstractController
{
/**
* @Route("/isic/")
*/
public function isicAction(Request $request, IsicView $view): Response
{
if (!findModule('isic')) {
throw new RedirectException(path('home'));
}
$view->setSession($request->getSession());
$data = $request->get('data');
if ($request->get('Submit') && !empty($data['id'])) {
$view->handleSubmit($data['id'], $data['name'] ?? null);
}
if ($request->get('cancel')) {
$view->handleCancel();
}
return $view->getResponse();
}
}