| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function configure() |
||
| 17 | { |
||
| 18 | $dotenv = new Dotenv(); |
||
| 19 | try { |
||
| 20 | $dotenv->load(__DIR__ . '/../../.env'); |
||
| 21 | } catch (PathException $e) { |
||
| 22 | // Nothing |
||
| 23 | } |
||
| 24 | |||
| 25 | $extension = new SocketIoExtension(); |
||
| 26 | $container = new ContainerBuilder(); |
||
| 27 | $container->setParameter('kernel.project_dir', getenv('KERNEL_PROJECT_DIR')); |
||
| 28 | $container->setParameter('kernel.root_dir', realpath(__DIR__ . '/../../../../SfCod/')); |
||
| 29 | $container->set(LoggerInterface::class, new Logger('test')); |
||
| 30 | |||
| 31 | $extension->load([ |
||
| 32 | 0 => [ |
||
| 33 | 'namespaces' => [ |
||
| 34 | 'SfCod\SocketIoBundle\Tests\Data', |
||
| 35 | ], |
||
| 36 | ], |
||
| 37 | ], $container); |
||
| 38 | |||
| 39 | $this->container = $container; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |