Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function __construct(Container $serviceContainer) |
||
28 | { |
||
29 | $this->serviceContainer = $serviceContainer; |
||
30 | |||
31 | $transport = new UdpTransport( |
||
32 | $this->serviceContainer->getParameter('graylog.host'), |
||
33 | $this->serviceContainer->getParameter('graylog.port'), |
||
34 | // static::$host, |
||
35 | // static::$port, |
||
36 | UdpTransport::CHUNK_SIZE_LAN |
||
37 | ); |
||
38 | |||
39 | $publisher = new Publisher(); |
||
40 | $publisher->addTransport($transport); |
||
41 | |||
42 | parent::__construct($publisher, Logger::NOTICE, true); |
||
43 | } |
||
44 | |||
64 |