Skip to content

Commit

Permalink
fixed compatibility with Symfony DebugClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 3, 2021
1 parent e412326 commit bfbef39
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@
class IControl extends Control
{
}
} elseif (!interface_exists(IControl::class)) {
class_alias(Control::class, IControl::class);
}

if (false) {
/** @deprecated use Nette\Forms\FormRenderer */
class IFormRenderer extends FormRenderer
{
}
} elseif (!interface_exists(IFormRenderer::class)) {
class_alias(FormRenderer::class, IFormRenderer::class);
}

if (false) {
/** @deprecated use Nette\Forms\SubmitterControl */
class ISubmitterControl extends SubmitterControl
{
}
} elseif (!interface_exists(IControl::class)) {
class_alias(Control::class, IControl::class);
class_alias(FormRenderer::class, IFormRenderer::class);
} elseif (!interface_exists(ISubmitterControl::class)) {
class_alias(SubmitterControl::class, ISubmitterControl::class);
}

0 comments on commit bfbef39

Please sign in to comment.