. */ namespace vierbergenlars\AuthserverExternalLoggingBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * This is the class that loads and manages your bundle configuration. * * @link http://symfony.com/doc/current/cookbook/bundles/extension.html */ class AuthserverExternalLoggingExtension extends Extension implements PrependExtensionInterface { public function load(array $configs, ContainerBuilder $container) {} public function getAlias() { return 'external_logging'; } public function prepend(ContainerBuilder $container) { $configs = $container->getExtensionConfig($this->getAlias()); $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $container->prependExtensionConfig('monolog', [ 'handlers' => [ 'vl_external_logging_entry' => $config ] ]); } }