src/Sulu/Component/Content/Document/Subscriber/ResourceSegmentSubscriber.php
private function persistRoute(ResourceSegmentBehavior $document)
    {
        $resourceLocatorStrategy = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey(
            $this->documentInspector->getWebspace($document)
        );

        $resourceLocatorStrategy->save($document, null);
    }
private function persistRoute(ResourceSegmentBehavior $document)
    {
        $resourceLocatorStrategy = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey(
            $this->documentInspector->getWebspace($document)
        );

        $resourceLocatorStrategy->save($document, null);
    }
private function persistRoute ( ResourceSegmentBehavior $ document ) { $ resourceLocatorStrategy = $ this -> resourceLocatorStrategyPool -> getStrategyByWebspaceKey ( $ this -> documentInspector -> getWebspace ( $ document ) ) ; $ resourceLocatorStrategy -> save ( $ document , null ) ; }
Creates or updates the route of the document using the RlpStrategy.

@param ResourceSegmentBehavior $document
Creates or updates the route of the document using the RlpStrategy .