Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | protected function configure() |
||
30 | { |
||
31 | $extension = new QueueExtension(); |
||
32 | $container = new ContainerBuilder(); |
||
33 | $container->setParameter('kernel.project_dir', ''); |
||
34 | $container->setParameter('kernel.environment', 'prod'); |
||
35 | $container->setParameter('kernel.root_dir', realpath(__DIR__ . '/../../../../SfCod/')); |
||
36 | $container->set(LoggerInterface::class, new Logger('test')); |
||
37 | |||
38 | $extension->load([ |
||
39 | 0 => [ |
||
40 | 'namespaces' => [ |
||
41 | 'SfCod\QueueBundle\Tests\Data', |
||
42 | ], |
||
43 | ], |
||
44 | 1 => [ |
||
45 | 'connections' => [ |
||
46 | 'default' => [ |
||
47 | 'driver' => 'mongo-thread', |
||
48 | 'collection' => 'queue_jobs', |
||
49 | 'connection' => MongoDriver::class, |
||
50 | 'queue' => 'default', |
||
51 | 'expire' => 60, |
||
52 | 'limit' => 2, |
||
53 | ], |
||
54 | ], |
||
55 | ], |
||
56 | ], $container); |
||
57 | |||
58 | $this->container = $container; |
||
59 | } |
||
60 | } |
||
61 |