From 6334343cda68247f648b356aa922a189d0ee92dc Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Thu, 15 Nov 2012 13:28:38 +0100 Subject: [PATCH] [Routing] removed getHostnamePattern from RouteCollection --- .../Component/Routing/RouteCollection.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/Symfony/Component/Routing/RouteCollection.php b/src/Symfony/Component/Routing/RouteCollection.php index 5b1eb9ea1b..ec6f4afc29 100644 --- a/src/Symfony/Component/Routing/RouteCollection.php +++ b/src/Symfony/Component/Routing/RouteCollection.php @@ -46,11 +46,6 @@ class RouteCollection implements \IteratorAggregate, \Countable */ private $parent; - /** - * @var string - */ - private $hostnamePattern = ''; - public function __clone() { foreach ($this->routes as $name => $route) { @@ -274,24 +269,12 @@ class RouteCollection implements \IteratorAggregate, \Countable } /** - * Returns the hostname pattern. - * - * @return string The pattern - */ - public function getHostnamePattern() - { - return $this->hostnamePattern; - } - - /** - * Sets the hostname pattern on this collection and all children. + * Sets the hostname pattern on all child routes. * * @param string $pattern The pattern */ public function setHostnamePattern($pattern) { - $this->hostnamePattern = (string) $pattern; - foreach ($this->routes as $name => $route) { $route->setHostnamePattern($pattern); }