Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function initPhpcr(DocumentManagerInterface $documentManager) |
||
21 | { |
||
22 | $session = $documentManager->getPhpcrSession(); |
||
23 | |||
24 | $rootNode = $session->getRootNode(); |
||
25 | if ($rootNode->hasNode('test')) { |
||
26 | $rootNode->getNode('test')->remove(); |
||
27 | } |
||
28 | |||
29 | $rootNode->addNode('test'); |
||
30 | } |
||
31 | } |
||
32 |