Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2014 at 21:44 UTC
Updated:
29 Jul 2014 at 23:16 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerIt is really a small think, though I like it.
Comment #2
webchickLooks like we need tests for this?
Comment #3
tim.plunkettNo, this works fine in HEAD because:
class RouteCollection implements \IteratorAggregate, \Countable {You can still foreach over it.
As the OP says:
That's why it's a minor task.
Comment #4
damiankloip commentedNope, coverage was already added in #2145041: Allow dynamic routes to be defined via a callback. It covers using an array and a routeCollection in RouteBuilderTest anyway. Thank you past tim.plunkett.
EDIT: Oh Tim beat me to it, big surprise :P
Comment #5
webchickOk, got it, thanks.
Committed and pushed to 8.x.