挪威工会联合会/validator-constraints-bundle

Symfony 组件,用于 Fagforbundet 特定的验证约束

1.0.0 2023-10-10 14:32 UTC

This package is auto-updated.

Last update: 2024-09-16 10:33:45 UTC


README

Symfony 组件,用于 Fagforbundet 特定的验证约束

安装

确保已全局安装 Composer,如 Composer 文档中的安装章节所述。

使用 Symfony Flex 的应用程序

打开命令行,进入您的项目目录并执行

$ composer require fagforbundet/validator-constraints-bundle

未使用 Symfony Flex 的应用程序

步骤 1: 下载 Bundle

打开命令行,进入您的项目目录并执行以下命令以下载此 Bundle 的最新稳定版本

$ composer require fagforbundet/validator-constraints-bundle

步骤 2: 启用 Bundle

然后,通过将其添加到项目 config/bundles.php 文件中注册的 Bundle 列表中来启用该 Bundle

// config/bundles.php

return [
    // ...
    Fagforbundet\ValidatorConstraintsBundle\FagforbundetValidatorConstraintsBundle::class => ['all' => true],
];