1 | <?php |
||
2 | |||
3 | namespace Bdf\PrimeBundle; |
||
4 | |||
5 | use Bdf\Prime\Prime; |
||
6 | use Bdf\Prime\Test\TestPack; |
||
7 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
8 | |||
9 | /** |
||
10 | * TestingPrimeBundle. |
||
11 | * |
||
12 | * @author Seb |
||
13 | */ |
||
14 | class TestingPrimeBundle extends Bundle |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | public function boot() |
||
20 | { |
||
21 | Prime::configure($this->container); |
||
22 | TestPack::pack()->initialize(); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | public function shutdown() |
||
29 | { |
||
30 | TestPack::pack()->clear(); |
||
31 | TestPack::pack()->destroy(); |
||
32 | Prime::configure(null); |
||
33 | } |
||
34 | } |
||
35 |