|
vor 8 Jahren | |
---|---|---|
Resources | vor 8 Jahren | |
Validator | vor 8 Jahren | |
README.md | vor 8 Jahren | |
ValidatorsBundle.php | vor 8 Jahren | |
composer.json | vor 8 Jahren |
composer.json:
"repositories": [
{
"type": "vcs",
"url": "ssh://git@infra.flowdat.com:222/VendorSoftwareFlowdat3/ValidatorsBundle.git",
"options": {
"local_pk": "./keys/bitbucket.id_rsa"
}
}
],
"require": {
"ik/validators-bundle": "dev-master"
},
app/AppKernel.php:
public function registerBundles()
{
$bundles = [
new ValidatorsBundle\ValidatorsBundle(),
];
.
.
}
app/config/config.yml:
imports:
- { resource: "@ValidatorsBundle/Resources/config/services.yml" }
use ValidatorsBundle\Validator as Validator;
...
/**
* @ORM\Entity
* @UniqueEntity("ip")
*
* @Validator\DeviceValidator
*/
class OLT
{