|
19 | 19 | use Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface;
|
20 | 20 | use Psr\Http\Client\ClientInterface;
|
21 | 21 | use Psr\Log\LoggerAwareInterface;
|
| 22 | +use Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler; |
22 | 23 | use Symfony\Bridge\Monolog\Processor\DebugProcessor;
|
23 | 24 | use Symfony\Bridge\Twig\Extension\CsrfExtension;
|
24 | 25 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
38 | 39 | use Symfony\Component\Cache\ResettableInterface;
|
39 | 40 | use Symfony\Component\Config\FileLocator;
|
40 | 41 | use Symfony\Component\Config\Loader\LoaderInterface;
|
41 |
| -use Symfony\Component\Config\Resource\DirectoryResource; |
42 | 42 | use Symfony\Component\Config\ResourceCheckerInterface;
|
| 43 | +use Symfony\Component\Config\Resource\DirectoryResource; |
43 | 44 | use Symfony\Component\Console\Application;
|
44 | 45 | use Symfony\Component\Console\Command\Command;
|
45 | 46 | use Symfony\Component\DependencyInjection\Alias;
|
| 47 | +use Symfony\Component\DependencyInjection\Argument\BoundArgument; |
46 | 48 | use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
|
47 | 49 | use Symfony\Component\DependencyInjection\ChildDefinition;
|
48 | 50 | use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
|
|
75 | 77 | use Symfony\Component\Lock\LockFactory;
|
76 | 78 | use Symfony\Component\Lock\LockInterface;
|
77 | 79 | use Symfony\Component\Lock\PersistingStoreInterface;
|
78 |
| -use Symfony\Component\Lock\Store\StoreFactory; |
79 | 80 | use Symfony\Component\Lock\StoreInterface;
|
| 81 | +use Symfony\Component\Lock\Store\StoreFactory; |
80 | 82 | use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory;
|
81 | 83 | use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory;
|
82 | 84 | use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory;
|
@@ -446,6 +448,11 @@ public function load(array $configs, ContainerBuilder $container)
|
446 | 448 | $container->registerForAutoconfiguration(LoggerAwareInterface::class)
|
447 | 449 | ->addMethodCall('setLogger', [new Reference('logger')]);
|
448 | 450 |
|
| 451 | + $handlerAutoconfiguration = $container->registerForAutoconfiguration(ElasticsearchLogstashHandler::class); |
| 452 | + $handlerAutoconfiguration->setBindings($handlerAutoconfiguration->getBindings() + [ |
| 453 | + HttpClientInterface::class => new BoundArgument(new Reference('monolog.http_client'), false), |
| 454 | + ]); |
| 455 | + |
449 | 456 | if (!$container->getParameter('kernel.debug')) {
|
450 | 457 | // remove tagged iterator argument for resource checkers
|
451 | 458 | $container->getDefinition('config_cache_factory')->setArguments([]);
|
|
0 commit comments