Skip to content

Commit

Permalink
Merge pull request #31 from BFoucher/feature/can-change-referenceType…
Browse files Browse the repository at this point in the history
…-link-validator

Allow referenceType for route generating
  • Loading branch information
paulandrieux authored May 5, 2017
2 parents c93dcb9 + fba00c0 commit c9308d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public function valid($value = [], $content = '')
if (isset($value['url'])) {
$url = $value['url'];
} else {
$url = $this->router->generate($value['route'], $value['parameters']);
$referenceType = isset($value['referenceType']) ? intval($value['referenceType']) : 1;
$url = $this->router->generate($value['route'], $value['parameters'], $referenceType);
}
$crawler = new Crawler($content);
$mailLink = $crawler->selectLink($value['link']);
Expand Down

0 comments on commit c9308d7

Please sign in to comment.