<?php
namespace App\Controller\Front;
use App\Manager\AfterSalesManager;
use App\Manager\TechnicalAssistanceManager;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class AfterSalesController extends AbstractController
{
protected array $locals = [];
public function __construct()
{
$this->locals['menu_active'] = '';
}
/**
* @Route("/postventa", name="after_sales")
* @Template("front/after_sales/after_sales.html.twig")
*/
public function afterSales(AfterSalesManager $afterSalesManager): array
{
$this->locals['sd'] = $afterSalesManager->find(1);
return $this->locals;
}
/**
* @Route("/asistencia-tecnica-y-capacitacion", name="technical_assistance")
* @Template("front/after_sales/technical_assistance.html.twig")
*/
public function technicalAssistance(TechnicalAssistanceManager $technicalAssistanceManager, AfterSalesManager $afterSalesManager): array
{
$this->locals['after_sales'] = $afterSalesManager->find(1);
$this->locals['sd'] = $technicalAssistanceManager->find(1);
$this->locals['page_type'] = 'technical_assistance';
return $this->locals;
}
}