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 1515use Doctrine \Common \Persistence \ManagerRegistry ;
1616use Doctrine \Common \Persistence \ObjectManager ;
1717use Symfony \Component \HttpFoundation \Request ;
18-
18+ use PHPCR \ Util \ PathHelper ;
1919use Knp \Menu \FactoryInterface ;
2020use Knp \Menu \NodeInterface ;
2121use 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 }
You can’t perform that action at this time.
0 commit comments