vendor/sonata-project/core-bundle/src/CoreBundle/Validator/Constraints/InlineConstraint.php line 20

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\CoreBundle\Validator\Constraints;
  12. if (!class_exists(Sonata\Form\Validator\Constraints\InlineConstraint::class, false)) {
  13.     @trigger_error(
  14.         'The '.__NAMESPACE__.'\InlineConstraint class is deprecated since version 3.13.0 and will be removed in 4.0.'
  15.         .' Use Sonata\Form\Validator\Constraint\InlineConstraint instead.',
  16.         E_USER_DEPRECATED
  17.     );
  18. }
  19. class_alias(
  20.     \Sonata\Form\Validator\Constraints\InlineConstraint::class,
  21.     __NAMESPACE__.'\InlineConstraint'
  22. );
  23. if (false) {
  24.     /**
  25.      * Constraint which allows inline-validation inside services.
  26.      *
  27.      * @Annotation
  28.      * @Target({"CLASS"})
  29.      *
  30.      * @deprecated Since version 3.13.0, to be removed in 4.0.
  31.      */
  32.     class InlineConstraint extends \Sonata\Form\Validator\Constraints\InlineConstraint
  33.     {
  34.     }
  35. }