src/Controller/StaticPagesController.php line 15
<?phpnamespace App\Controller;use App\Repository\ContractOrderRepository;use App\Repository\NewsRepository;use App\Service\ContractOrderService;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class StaticPagesController extends AbstractController{#[Route('/', name: 'homepage')]public function done(NewsRepository $newsRepository): Response{$news = $newsRepository->findBy(['active' => true], ['date' => 'DESC'], 3);return $this->render('Pages/homepage.html.twig',['news' => $news,]);}#[Route('/test', name: 'test')]public function test(ContractOrderRepository $contractOrderRepository, ContractOrderService $contractOrderService): Response{$contractOrder = $contractOrderRepository->find(8316);$contractOrderService->saveContractOrder($contractOrder);exit;die("****");}}