<?php

namespace Myvetshop\Module\Clinique\Adapter\Controller;

use Symfony\Component\HttpFoundation\Request;

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