private function getProviderKey(ContainerBuilder $container, array $tag, $listenerId) { if (!isset($tag['firewall'])) { throw new \RuntimeException(sprintf('Must define "firewall" or "context" in "%s" tag for %s.', $this->tagName, $listenerId)); } return $container->getParameterBag()->resolveValue($tag['firewall']); }