Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function prepend(ContainerBuilder $container) |
||
25 | { |
||
26 | $config = $container->getExtensionConfig($this->getAlias()); |
||
27 | $config = $this->processConfiguration($this->getBundleConfiguration(), $config); |
||
28 | |||
29 | // TODO: duplicate new connection. |
||
30 | $container->prependExtensionConfig('doctrine', array( |
||
31 | 'orm' => array( |
||
32 | 'entity_managers' => array( |
||
33 | $config['object_manager'] => array( |
||
34 | 'connection' => $config['connection'], |
||
35 | 'mappings' => array( |
||
36 | 'DoSQueueBundle' => array( |
||
37 | 'type' => 'yml', |
||
38 | 'prefix' => 'DoS\QueueBundle\Model', |
||
39 | 'dir' => '%kernel.root_dir%/../vendor/liverbool/dos-queue-bundle/Resources/config/doctrine/model', |
||
40 | ) |
||
41 | ), |
||
42 | 'filters' => array( |
||
43 | 'softdeleteable' => array( |
||
44 | 'class' => 'Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter', |
||
45 | 'enabled' => true, |
||
46 | ), |
||
47 | ), |
||
48 | ) |
||
49 | ) |
||
50 | ), |
||
51 | )); |
||
52 | } |
||
53 | } |
||
54 |