8000 [Routing] removed getHostnamePattern from RouteCollection · lanthaler/symfony@6334343 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6334343

Browse files
Tobionfabpot
authored andcommitted
[Routing] removed getHostnamePattern from RouteCollection
1 parent 777aa50 commit 6334343

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/Symfony/Component/Routing/RouteCollection.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ class RouteCollection implements \IteratorAggregate, \Countable
4646
*/
4747
private $parent;
4848

49-
/**
50-
* @var string
51-
*/
52-
private $hostnamePattern = '';
53-
5449
public function __clone()
5550
{
5651
foreach ($this->routes as $name => $route) {
@@ -274,24 +269,12 @@ public function getPrefix()
274269
}
275270

276271
/**
277-
* Returns the hostname pattern.
278-
*
279-
* @return string The pattern
280-
*/
281-
public function getHostnamePattern()
282-
{
283-
return $this->hostnamePattern;
284-
}
285-
286-
/**
287-
* Sets the hostname pattern on this collection and all children.
272+
* Sets the hostname pattern on all child routes.
288273
*
289274
* @param string $pattern The pattern
290275
*/
291276
public function setHostnamePattern($pattern)
292277
{
293-
$this->hostnamePattern = (string) $pattern;
294-
295278
foreach ($this->routes as $name => $route) {
296279
$route->setHostnamePattern($pattern);
297280
}

0 commit comments

Comments
 (0)
0