Jackalope\Lock\LockManager::getSession PHP Метод

getSession() публичный Метод

for the locks to get the session to get their root node
public getSession ( ) : PHPCR\SessionInterface
Результат PHPCR\SessionInterface
    public function getSession()
    {
        return $this->session;
    }

Usage 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);
 }