AlreadyBoundException.php 944 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Form\Exception;
  11. /**
  12. * Alias of {@link AlreadySubmittedException}.
  13. *
  14. * @deprecated since version 2.3, to be removed in 3.0.
  15. * Use {@link AlreadySubmittedException} instead.
  16. */
  17. class AlreadyBoundException extends LogicException
  18. {
  19. public function __construct($message = '', $code = 0, \Exception $previous = null)
  20. {
  21. if (__CLASS__ === \get_class($this)) {
  22. @trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\Exception\AlreadySubmittedException class instead.', E_USER_DEPRECATED);
  23. }
  24. parent::__construct($message, $code, $previous);
  25. }
  26. }