Skip to content

Commit dfe7775

Browse files
committed
removed support for obsolete inteface Nette\Application\IRouter (replaced by Nette\Routing\Router)
1 parent a178f0e commit dfe7775

4 files changed

Lines changed: 0 additions & 18 deletions

File tree

src/Application/Routers/Route.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,3 @@ public static function path2presenter(string $s): string
184184
return $s;
185185
}
186186
}
187-
188-
189-
interface_exists(Nette\Application\IRouter::class);

src/Application/Routers/RouteList.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,3 @@ public function offsetUnset($index): void
136136
$this->modify($index, null);
137137
}
138138
}
139-
140-
141-
interface_exists(Nette\Application\IRouter::class);

src/Application/Routers/SimpleRouter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ public function __construct(array|string $defaults = [])
3737
parent::__construct($defaults);
3838
}
3939
}
40-
41-
42-
interface_exists(Nette\Application\IRouter::class);

src/compatibility-intf.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99

1010
namespace Nette\Application;
1111

12-
if (false) {
13-
/** @deprecated use Nette\Routing\Router */
14-
interface IRouter extends \Nette\Routing\Router
15-
{
16-
}
17-
} elseif (!interface_exists(IRouter::class)) {
18-
class_alias(\Nette\Routing\Router::class, IRouter::class);
19-
}
20-
2112
if (false) {
2213
/** @deprecated use Nette\Application\Response */
2314
interface IResponse extends Response

0 commit comments

Comments
 (0)