DependencyInjection/ONGRConnectionsExtension.php
protected function getShopId(ContainerBuilder $container, $shop, $name)
    {
        $shops = $container->getParameter('ongr_connections.shops');
        if (!isset($shops[$shop])) {
            throw new \InvalidArgumentException('Non existing shop provided for pipeline ' . $name);
        }

        return $shops[$shop]['shop_id'];
    }
protected function getShopId(ContainerBuilder $container, $shop, $name)
    {
        $shops = $container->getParameter('ongr_connections.shops');
        if (!isset($shops[$shop])) {
            throw new \InvalidArgumentException('Non existing shop provided for pipeline ' . $name);
        }

        return $shops[$shop]['shop_id'];
    }
Retrieves shop id by shop name.

@param ContainerBuilder $container
@param string           $shop
@param string           $name

@return mixed