Bee-Lab/BeelabSimplePageBundle

View on GitHub
Validator/Constraints/NoExistingRoute.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Beelab\SimplePageBundle\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

/**
 * @Annotation
 */
class NoExistingRoute extends Constraint
{
    public $message = 'This path match existing route ({{ route }}).';
    public $messageWithoutRoute = 'This path match existing route.';

    public function validatedBy(): string
    {
        return 'no_existing_route';
    }
}