Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/AphrontURIMapper.php
| <?php | <?php | ||||
| /** | |||||
| * @group aphront | |||||
| */ | |||||
| final class AphrontURIMapper { | final class AphrontURIMapper { | ||||
| private $map; | private $map; | ||||
| final public function __construct(array $map) { | final public function __construct(array $map) { | ||||
| $this->map = $map; | $this->map = $map; | ||||
| } | } | ||||
| Show All 30 Lines | foreach ($value as $srule => $sval) { | ||||
| list($controller, $data) = $this->tryRule($srule, $sval, $path); | list($controller, $data) = $this->tryRule($srule, $sval, $path); | ||||
| if ($controller) { | if ($controller) { | ||||
| return array($controller, $data + $match); | return array($controller, $data + $match); | ||||
| } | } | ||||
| } | } | ||||
| return array(null, null); | return array(null, null); | ||||
| } | } | ||||
| } | } | ||||