compatibility.php 686 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * This file is part of the Nette Framework (https://nette.org)
  4. * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
  5. */
  6. declare(strict_types=1);
  7. namespace Nette\Utils;
  8. use Nette;
  9. if (false) {
  10. /** @deprecated use Nette\HtmlStringable */
  11. interface IHtmlString extends Nette\HtmlStringable
  12. {
  13. }
  14. } elseif (!interface_exists(IHtmlString::class)) {
  15. class_alias(Nette\HtmlStringable::class, IHtmlString::class);
  16. }
  17. namespace Nette\Localization;
  18. if (false) {
  19. /** @deprecated use Nette\Localization\Translator */
  20. interface ITranslator extends Translator
  21. {
  22. }
  23. } elseif (!interface_exists(ITranslator::class)) {
  24. class_alias(Translator::class, ITranslator::class);
  25. }