Skip to content

Commit f804fd7

Browse files
committed
removed compatibility for old class names
- inteface Nette\Application\IRouter replaced by Nette\Routing\Router
1 parent 84ead12 commit f804fd7

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
@@ -378,6 +378,3 @@ public function error(string $message = '', int $httpCode = Nette\Http\IResponse
378378
throw new Nette\Application\BadRequestException($message, $httpCode);
379379
}
380380
}
381-
382-
383-
class_exists(PresenterComponent::class);

src/Application/UI/ComponentReflection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,3 @@ public static function combineArgs(\ReflectionFunctionAbstract $method, array $a
214214
return ParameterConverter::toArguments($method, $args);
215215
}
216216
}
217-
218-
219-
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)