Browse files

[Routing] fix Route recompilation when hostname changed

  • Loading branch information...
1 parent 00d132a commit acf8a704208d91f33f7ab47a23e935d8c0a3e0fa @Tobion Tobion committed Nov 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Symfony/Component/Routing/Route.php
View
1 src/Symfony/Component/Routing/Route.php
@@ -149,6 +149,7 @@ public function getHostnamePattern()
public function setHostnamePattern($pattern)
{
$this->hostnamePattern = (string) $pattern;
+ $this->compiled = null;
return $this;
}

2 comments on commit acf8a70

@vicb

What about updating unit tests ?

@Tobion
Symfony member

Well, one would need to test this for each method (an easy but drudging task ^^)

Please sign in to comment.