Skip to content

Commit dfdb604

Browse files
committed
removed compatibility for old class names
- inteface Nette\Application\IRouter replaced by Nette\Routing\Router
1 parent 2d83ce1 commit dfdb604

File tree

7 files changed

+0
-54
lines changed

7 files changed

+0
-54
lines changed

src/Application/Routers/Route.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,3 @@ public static function path2presenter(string $s): string
187187
return $s;
188188
}
189189
}
190-
191-
192-
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
@@ -139,6 +139,3 @@ public function offsetUnset($index): void
139139
$this->modify($index, null);
140140
}
141141
}
142-
143-
144-
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
@@ -38,6 +38,3 @@ public function __construct(array|string $defaults = [])
3838
parent::__construct($defaults);
3939
}
4040
}
41-
42-
43-
interface_exists(Nette\Application\IRouter::class);

src/Application/UI/Component.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,3 @@ public function error(string $message = '', int $httpCode = Nette\Http\IResponse
337337
throw new Nette\Application\BadRequestException($message, $httpCode);
338338
}
339339
}
340-
341-
342-
class_exists(PresenterComponent::class);

src/Application/UI/ComponentReflection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,3 @@ public static function getClassesAndTraits(string $class): array
341341
return $res;
342342
}
343343
}
344-
345-
346-
class_exists(PresenterComponentReflection::class);

src/compatibility-intf.php

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

1010
namespace Nette\Application;
1111

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

src/compatibility.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)