Implementation specific: Transport is used elsewhere, provide it here
for Session
public getTransport ( ) : Jackalope\Transport\TransportInterface | ||
return | Jackalope\Transport\TransportInterface |
/** * {@inheritDoc} * * @api */ public function execute() { if (is_null($this->objectManager)) { // if the ObjectManager was not injected in the header. this is only supposed to happen in the DBAL client. throw new RepositoryException('Jackalope implementation error: This query was built for parsing only. (There is no ObjectManager to run the query against.)'); } $transport = $this->objectManager->getTransport(); $rawData = $transport->query($this); $queryResult = $this->factory->get('Query\\QueryResult', array($rawData, $this->objectManager)); return $queryResult; }
/** * {@inheritDoc} * * @api */ public function getSupportedQueryLanguages() { // Workspace checks if transport implements QueryInterface return $this->objectManager->getTransport()->getSupportedQueryLanguages(); }
/** * Implementation specific: The transport implementation is also used by * other components, i.e. the NamespaceRegistry * * @return TransportInterface the transport implementation associated with * this session. * * @private */ public function getTransport() { return $this->objectManager->getTransport(); }