In my controller I got cartToken something like this.
public function myfunc( SalesChannelContext $context )
$cartToken = $context->getToken();
However, I can’t do it the same way in the subscriber, as I don’t know how to insert SalesChannelContext into services.xml
Therefore, my question is the following: how to get a cartToken in the subscriber myfunc ?
Tell me please