public function createService(ServiceLocatorInterface $container) { if ($container instanceof AbstractPluginManager) { $container = $container->getServiceLocator() ?: $container; } return $this($container, AuthenticationTypeController::class); }