use Shopware\Core\System\SalesChannel\SalesChannelDefinition;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Type;
#[Package('buyers-experience')]
class SeoUrlValidationFactory implements SeoUrlDataValidationFactoryInterface
{ public function buildValidation(Context
$context, ?SeoUrlRouteConfig
$config): DataValidationDefinition
{ $definition =
new DataValidationDefinition('seo_url.create'
);
$this->
addConstraints($definition,
$config,
$context);
return $definition;
} private function addConstraints( DataValidationDefinition
$definition,
?SeoUrlRouteConfig
$routeConfig,
Context
$context ): void
{ $fkConstraints =
[new NotBlank()];