src/NcrLazyLoader.php
public function flush(): void
    {
        if (null === $this->getNodeBatchRequest) {
            return;
        }

        if (!$this->getNodeBatchRequest->has('node_refs')) {
            return;
        }

        try {
            $request = $this->getNodeBatchRequest;
            $this->getNodeBatchRequest = null;
            $this->pbjx->request($request);
        } catch (\Throwable $e) {
            $this->logger->error(
                sprintf('%s::NcrLazyLoader::flush() could not complete.', ClassUtils::getShortName($e)),
                ['exception' => $e, 'pbj' => $request->toArray()]
            );
        }
    }
public function flush(): void
    {
        if (null === $this->getNodeBatchRequest) {
            return;
        }

        if (!$this->getNodeBatchRequest->has('node_refs')) {
            return;
        }

        try {
            $request = $this->getNodeBatchRequest;
            $this->getNodeBatchRequest = null;
            $this->pbjx->request($request);
        } catch (\Throwable $e) {
            $this->logger->error(
                sprintf('%s::NcrLazyLoader::flush() could not complete.', ClassUtils::getShortName($e)),
                ['exception' => $e, 'pbj' => $request->toArray()]
            );
        }
    }
public function flush ( ) : void { if ( null === $ this -> getNodeBatchRequest ) { return ; } if ( ! $ this -> getNodeBatchRequest -> has ( 'node_refs' ) ) { return ; } try { $ request = $ this -> getNodeBatchRequest ; $ this -> getNodeBatchRequest = null ; $ this -> pbjx -> request ( $ request ) ; } catch ( \ Throwable $ e ) { $ this -> logger -> error ( sprintf ( '%s::NcrLazyLoader::flush() could not complete.' , ClassUtils :: getShortName ( $ e ) ) , [ 'exception' => $ e , 'pbj' => $ request -> toArray ( ) ] ) ; } }
Processes the deferrered request which should populate the
NcrCache once complete.  At least for any nodes that exist.
Processes the deferrered request which should populate the NcrCache once complete . At least for any nodes that exist .