Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Add getUriContextCollection($document) method to manager #151

@dantleech

Description

@dantleech

Currently is is necessary to instantiate the UriContextCollection before using the RoutingAuto system:

$uriContextCollection = new UriContextCollection($document);
$arm->buildUriContextCollection($uriContextCollection);

foreach ($uriContextCollection->getUriContexts() as $context) {
    $autoRoute = $uriContext->getAutoRoute();
    // save auto route
}

But this causes potential BC breaks in the future as the URIContextCollection class is going to
be present in third-party code. It should be contained within the manager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions