This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
use Doctrine \Common \Persistence \ManagerRegistry ;
16
16
use Doctrine \Common \Persistence \ObjectManager ;
17
17
use Symfony \Component \HttpFoundation \Request ;
18
-
18
+ use PHPCR \ Util \ PathHelper ;
19
19
use Knp \Menu \FactoryInterface ;
20
20
use Knp \Menu \NodeInterface ;
21
21
use Knp \Menu \Provider \MenuProviderInterface ;
@@ -124,7 +124,7 @@ public function get($name, array $options = array())
124
124
throw new \InvalidArgumentException ('The menu name may not be empty ' );
125
125
}
126
126
127
- $ menu = $ this ->getObjectManager ()->find (null , \ PHPCR \ Util \ PathHelper::absolutizePath ($ name , $ this ->menuRoot ));
127
+ $ menu = $ this ->getObjectManager ()->find (null , PathHelper::absolutizePath ($ name , $ this ->menuRoot ));
128
128
if ($ menu === null ) {
129
129
throw new \InvalidArgumentException (sprintf ('The menu "%s" is not defined. ' , $ name ));
130
130
}
@@ -152,7 +152,7 @@ public function get($name, array $options = array())
152
152
*/
153
153
public function has ($ name , array $ options = array ())
154
154
{
155
- $ menu = $ this ->getObjectManager ()->find (null , \ PHPCR \ Util \ PathHelper::absolutizePath ($ name , $ this ->menuRoot ));
155
+ $ menu = $ this ->getObjectManager ()->find (null , PathHelper::absolutizePath ($ name , $ this ->menuRoot ));
156
156
157
157
return $ menu instanceof NodeInterface;
158
158
}
You can’t perform that action at this time.
0 commit comments