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

Add getUriContextCollection($document) method to manager #151

Open
dantleech opened this issue Feb 6, 2015 · 0 comments
Open

Add getUriContextCollection($document) method to manager #151

dantleech opened this issue Feb 6, 2015 · 0 comments

Comments

@dantleech
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant