Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #103 from antoine-pous/master
Browse files Browse the repository at this point in the history
Merge config params with query params #101
  • Loading branch information
Antoine Pous authored Mar 9, 2017
2 parents 10f6590 + 46bf0cd commit 5c5831e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5c5831e

Please sign in to comment.