registerAssetMapperConfiguration example

throw new LogicException('Asset support cannot be enabled as the Asset component is not installed. Try running "composer require symfony/asset".');
            }

            $this->registerAssetsConfiguration($config['assets']$container$loader);
        }

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

            $this->registerAssetMapperConfiguration($config['asset_mapper']$container$loader$this->readConfigEnabled('assets', $container$config['assets']));
        } else {
            $container->removeDefinition('cache.asset_mapper');
        }

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

        if ($this->readConfigEnabled('mailer', $container$config['mailer'])) {
            $this->registerMailerConfiguration($config['mailer']$container$loader$this->readConfigEnabled('webhook', $container$config['webhook']));

            
Home | Imprint | This part of the site doesn't use cookies.