Permalink
Browse files

Controller maps are now processed FIFO.

  • Loading branch information...
1 parent 787bae7 commit ccb6d0134b01a6007e73c49517fb04644e0d1e5f @trq trq committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Proem/Dispatch/Standard.php
View
2 lib/Proem/Dispatch/Standard.php
@@ -149,7 +149,7 @@ public function isDispatchable()
$this->controller = $this->payload->has('controller') ? ucfirst(strtolower($this->payload->get('controller'))) : '';
$this->action = $this->payload->has('action') ? $this->payload->get('action') : '';
- foreach ($this->controllerMaps as $map) {
+ foreach (array_reverse($this->controllerMaps) as $map) {
$this->class = str_replace(
[':module', ':controller'],
[$this->module, $this->controller],

0 comments on commit ccb6d01

Please sign in to comment.