registerMailerConfiguration example

$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']));

            if (!$this->hasConsole() || !class_exists(MailerTestCommand::class)) {
                $container->removeDefinition('console.command.mailer_test');
            }
        }

        $propertyInfoEnabled = $this->readConfigEnabled('property_info', $container$config['property_info']);
        $this->registerHttpCacheConfiguration($config['http_cache']$container$config['http_method_override']);
        $this->registerEsiConfiguration($config['esi']$container$loader);
        $this->registerSsiConfiguration($config['ssi']$container$loader);
        $this->registerFragmentsConfiguration($config['fragments']$container$loader);
        
Home | Imprint | This part of the site doesn't use cookies.