Elcodi\Common\FirewallBundle\CompilerPass\FirewallCompilerPass::getProviderKey PHP Method

getProviderKey() private method

Get the firewall provider key from a tag attribute, if it can found one
private getProviderKey ( ContainerBuilder $container, array $tag, string $listenerId ) : string
$container Symfony\Component\DependencyInjection\ContainerBuilder Container to resolve parameters
$tag array Tag to search for the firewall key
$listenerId string Name of the service
return string The firewall provider key
    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']);
    }