Skip to content
  • Oliver Hader's avatar
    [TASK] Clean up Routing API · 8f73f703
    Oliver Hader authored and Oliver Hader's avatar Oliver Hader committed
    The PageUriBuilder is gone, as all is centralized in the
    PageRouter now, which acts as the centralized place to resolve
    Requests ("matchRequest") and to create URLs ("generateUri")
    for pages that have a site configuration.
    
    RouterInterface is the abstract interface which is intended to be
    used within Backend as well in the future, and provides a good basis
    for both cases (that's why page ID and SiteInterface is not hardcoded
    in the API).
    
    RouteResultInterface is introduced to allow further Result objects
    like page-specific results, useful for future routing improvements.
    
    Since PageUriBuilder was only used in cases where there was a
    site, the Router is now bound to a site (see constructor).
    
    When generating a URL, the PageRouter can receive a special
    argument called "_language" to hand over a SiteLanguage object.
    
    Resolves: #86388
    Releases: master
    Change-Id: Ib090d3373a88cb7c534557ef21b46dce646078b5
    Reviewed-on: https://review.typo3.org/58149
    
    
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
    Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
    8f73f703