-
Specification change (Sub-task)
-
Resolution: Fixed
-
Trivial
-
None
-
5.0 (plan)
-
Sprint 57 (Oct 2019), Sprint 58 (Nov 2019), Sprint 59 (Dec 2019), Sprint 60 (Jan 2020), Sprint 61 (Feb 2020), Sprint 62 (Mar 2020), Sprint 63 (Apr 2020), Sprint 64 (May 2020)
-
0.125
Add new public method addActions to the CRouter class:
public function addActions(array $actions) { ... }
Since the route calculation should not be executed before the new routes were added:
- The constructor should not take any parameters anymore (remove $action parameter).
- The calculateRoute() method should now be called externally, it should accept the $action parameter.
- Rename calculateRoute() to setAction(), since it will really set action (the method is not currently used outside the class).