<?php

namespace Myvetshop\Module\Clinique\Adapter\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

interface FrontControllerAdapterInterface
{
    /**
     * @param \Context $context
     * @param Request $request
     *
     * @return array{
     *     template: string,
     *     parameters: array<mixed>,
     *     errors?: string[],
     *     success?: string[],
     *     redirect?: string,
     *     response?: Response
     * }
     */
    public function handleRequest(
        \Context $context,
        Request $request
    ): array;
}
