diff --git a/src/Route.php b/src/Route.php index e4b0603..102d51b 100755 --- a/src/Route.php +++ b/src/Route.php @@ -85,6 +85,7 @@ public function __construct($resource, array $config) $this->methods = isset($config['methods']) ? (array) $config['methods'] : array(); $this->target = isset($config['target']) ? $config['target'] : null; $this->name = isset($config['name']) ? $config['name'] : null; + $this->parameters = isset($config['parameters']) ? $config['parameters'] : array(); } public function getUrl() @@ -161,7 +162,7 @@ public function getParameters() public function setParameters(array $parameters) { - $this->parameters = $parameters; + $this->parameters = array_merge($this->parameters, $parameters); } public function dispatch()