Hi.
I try to get the UserSession in a service that is inject in my controller.
I don’t seem to be hable to inject the ServerRequestInterface in the service…
I get this when emptying the cache:
Cannot autowire service “transaction.service”: argument “$request” of method “Libeo\LboEcommerce\Service\TransactionService::__construct()” references interface “Psr\Http\Message\Serve
rRequestInterface” but no such service exists. You should maybe alias this interface to one of these existing services: “TYPO3\CMS\Core\Http\ServerRequest”, “TYPO3\CMS\Extbase\Mvc\Requ
est”, “TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest”.
Not sure why I can’t…
I can inject the context, but I can’t get to the user with it.
The finality is I need to acces the UserSession to get and set value on it.
I’m in TYPO3 v11, but don’t think it change something.
Thanks for your help!