getSession() public method

for the locks to get the session to get their root node
public getSession ( ) : PHPCR\SessionInterface
return PHPCR\SessionInterface
Example #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function getNode()
 {
     if (null === $this->path) {
         throw new NotImplementedException();
         // TODO either here or in transport figure out the owning node
         // we might want to delay this until actually requested, as we need to walk up the tree to find the owning node
     }
     return $this->lockManager->getSession()->getNode($this->path);
 }