InlineValidator.php 800 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\AdminBundle\Validator;
  11. use Sonata\CoreBundle\Validator\InlineValidator as BaseInlineValidator;
  12. use Sonata\AdminBundle\Validator\ErrorElement;
  13. /**
  14. * @deprecated
  15. */
  16. class InlineValidator extends BaseInlineValidator
  17. {
  18. /**
  19. * @param mixed $value
  20. *
  21. * @return ErrorElement
  22. */
  23. protected function getErrorElement($value)
  24. {
  25. return new ErrorElement(
  26. $value,
  27. $this->constraintValidatorFactory,
  28. $this->context,
  29. $this->context->getGroup()
  30. );
  31. }
  32. }