/** * {@inheritDoc} */ public function onExecute($request, ActionInterface $action) { if ($action instanceof GenericTokenFactoryAwareInterface) { $action->setGenericTokenFactory($this->genericTokenFactory); } }