Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit dd2f0b2

Browse files
committed
Add use statements for PathHelper
1 parent 7e5c97d commit dd2f0b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Provider/PhpcrMenuProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Doctrine\Common\Persistence\ManagerRegistry;
1616
use Doctrine\Common\Persistence\ObjectManager;
1717
use Symfony\Component\HttpFoundation\Request;
18-
18+
use PHPCR\Util\PathHelper;
1919
use Knp\Menu\FactoryInterface;
2020
use Knp\Menu\NodeInterface;
2121
use Knp\Menu\Provider\MenuProviderInterface;
@@ -124,7 +124,7 @@ public function get($name, array $options = array())
124124
throw new \InvalidArgumentException('The menu name may not be empty');
125125
}
126126

127-
$menu = $this->getObjectManager()->find(null, \PHPCR\Util\PathHelper::absolutizePath($name, $this->menuRoot));
127+
$menu = $this->getObjectManager()->find(null, PathHelper::absolutizePath($name, $this->menuRoot));
128128
if ($menu === null) {
129129
throw new \InvalidArgumentException(sprintf('The menu "%s" is not defined.', $name));
130130
}
@@ -152,7 +152,7 @@ public function get($name, array $options = array())
152152
*/
153153
public function has($name, array $options = array())
154154
{
155-
$menu = $this->getObjectManager()->find(null, \PHPCR\Util\PathHelper::absolutizePath($name, $this->menuRoot));
155+
$menu = $this->getObjectManager()->find(null, PathHelper::absolutizePath($name, $this->menuRoot));
156156

157157
return $menu instanceof NodeInterface;
158158
}

0 commit comments

Comments
 (0)