registerRateLimiterConfiguration example



        if ($this->readConfigEnabled('semaphore', $container$config['semaphore'])) {
            $this->registerSemaphoreConfiguration($config['semaphore']$container$loader);
        }

        if ($this->readConfigEnabled('rate_limiter', $container$config['rate_limiter'])) {
            if (!interface_exists(LimiterInterface::class)) {
                throw new LogicException('Rate limiter support cannot be enabled as the RateLimiter component is not installed. Try running "composer require symfony/rate-limiter".');
            }

            $this->registerRateLimiterConfiguration($config['rate_limiter']$container$loader);
        }

        if ($this->readConfigEnabled('web_link', $container$config['web_link'])) {
            if (!class_exists(HttpHeaderSerializer::class)) {
                throw new LogicException('WebLink support cannot be enabled as the WebLink component is not installed. Try running "composer require symfony/weblink".');
            }

            $loader->load('web_link.php');
        }

        if ($this->readConfigEnabled('uid', $container$config['uid'])) {
            
Home | Imprint | This part of the site doesn't use cookies.