Skip to content

Commit bfbef39

Browse files
committed
fixed compatibility with Symfony DebugClassLoader
1 parent e412326 commit bfbef39

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/compatibility.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,24 @@
1414
class IControl extends Control
1515
{
1616
}
17+
} elseif (!interface_exists(IControl::class)) {
18+
class_alias(Control::class, IControl::class);
19+
}
1720

21+
if (false) {
1822
/** @deprecated use Nette\Forms\FormRenderer */
1923
class IFormRenderer extends FormRenderer
2024
{
2125
}
26+
} elseif (!interface_exists(IFormRenderer::class)) {
27+
class_alias(FormRenderer::class, IFormRenderer::class);
28+
}
2229

30+
if (false) {
2331
/** @deprecated use Nette\Forms\SubmitterControl */
2432
class ISubmitterControl extends SubmitterControl
2533
{
2634
}
27-
} elseif (!interface_exists(IControl::class)) {
28-
class_alias(Control::class, IControl::class);
29-
class_alias(FormRenderer::class, IFormRenderer::class);
35+
} elseif (!interface_exists(ISubmitterControl::class)) {
3036
class_alias(SubmitterControl::class, ISubmitterControl::class);
3137
}

0 commit comments

Comments
 (0)