Neos\Flow\Mvc\Routing\IdentityRoutePart::storeObjectPathMapping PHP Méthode

storeObjectPathMapping() protected méthode

Creates a new ObjectPathMapping and stores it in the repository
protected storeObjectPathMapping ( string $pathSegment, string | integer $identifier ) : void
$pathSegment string
$identifier string | integer
Résultat void
    protected function storeObjectPathMapping($pathSegment, $identifier)
    {
        $objectPathMapping = new ObjectPathMapping();
        $objectPathMapping->setObjectType($this->objectType);
        $objectPathMapping->setUriPattern($this->getUriPattern());
        $objectPathMapping->setPathSegment($pathSegment);
        $objectPathMapping->setIdentifier($identifier);
        $this->objectPathMappingRepository->add($objectPathMapping);
        $this->objectPathMappingRepository->persistEntities();
    }