It would be super cool to be able to write such code:
#[Route('/')]
public function index(
#[TaggedLocator('foobar')]
ContainerInterface $foobar,
): JsonResponse
{
dd($foo);
But it does not work ATM
Cannot autowire argument $foo of "App\Controller\AController::index()": it references interface "Psr\Container\ContainerInterface" but no such service exists. Available autowiring aliases for this interface are: "$parameterBag".
Note
It also applies to TaggedIterator
The text was updated successfully, but these errors were encountered:
Description
It would be super cool to be able to write such code:
But it does not work ATM
The text was updated successfully, but these errors were encountered: