<?php declare(strict_types=1);
namespace App\Bundle\Croatia\Controller\V1;
use FOS\RestBundle\Controller\Annotations as Rest;
use Swagger\Annotations as SWG;
use App\Controller\V1\InformationController as BaseController;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/information")
* @SWG\Tag(name="Helper_v1")
*/
class InformationController extends BaseController
{
/**
* @Route("/legal-info", methods={"GET"})
* @Rest\View()
*
* @SWG\Response(
* response="200",
* description="Success",
* @SWG\Schema(type="array", @SWG\Items(@SWG\Property(property="docType", type="string"),
* @SWG\Property(property="label", type="string"),
* @SWG\Property(property="doc", type="string")
* ))))
*
* @return array
*/
public function legalInfoAction()
{
return [
[
'docType' => $this->translator->trans('information.legal-info.hr.1.docType'),
'label' => $this->translator->trans('information.legal-info.hr.1.label'),
'doc' => $this->translator->trans('information.legal-info.hr.1.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.2.docType'),
'label' => $this->translator->trans('information.legal-info.hr.2.label'),
'doc' => $this->translator->trans('information.legal-info.hr.2.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.3.docType'),
'label' => $this->translator->trans('information.legal-info.hr.3.label'),
'doc' => $this->translator->trans('information.legal-info.hr.3.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.4.docType'),
'label' => $this->translator->trans('information.legal-info.hr.4.label'),
'doc' => $this->translator->trans('information.legal-info.hr.4.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.5.docType'),
'label' => $this->translator->trans('information.legal-info.hr.5.label'),
'doc' => $this->translator->trans('information.legal-info.hr.5.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.6.docType'),
'label' => $this->translator->trans('information.legal-info.hr.6.label'),
'doc' => $this->translator->trans('information.legal-info.hr.6.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.7.docType'),
'label' => $this->translator->trans('information.legal-info.hr.7.label'),
'doc' => $this->translator->trans('information.legal-info.hr.7.doc'),
],
[
'docType' => $this->translator->trans('information.legal-info.hr.8.docType'),
'label' => $this->translator->trans('information.legal-info.hr.8.label'),
'doc' => $this->translator->trans('information.legal-info.hr.8.doc'),
]
];
}
/**
* @Route("/cookie-policy", methods={"GET"})
* @Rest\View()
*
* @SWG\Response(
* response="200",
* description="Success",
* @SWG\Schema(type="object",@SWG\Property(property="path", type="string")
* ))
*
* @return array
*/
public function cookiePolicyAction()
{
return [
'path' => '/static/media/' . $this->translator->trans('information.legal-info.hr.4.doc')
];
}
}