Açıklama Yok

Guillermo Espinoza d4d949b8a9 FD3-223 se agrego container al device listener 7 yıl önce
Command 85b2154c95 FD3-223 Comando para crear devices 7 yıl önce
EventListener d4d949b8a9 FD3-223 se agrego container al device listener 7 yıl önce
Interfaces bf1029b73d Refactory listener. Se agrego método en Interface 8 yıl önce
Resources d4d949b8a9 FD3-223 se agrego container al device listener 7 yıl önce
Services f801d90020 Se actualizo la definicion del servicio monolog handler 7 yıl önce
Twig f41487cb33 Merge branch 'master' of ssh://infra.flowdat.com:222/VendorSoftwareFlowdat3/DeviceBundle 7 yıl önce
Utils d3d8b2be63 Se agrego clase con devicetypes 8 yıl önce
Validator 61a172c14a Agregado del setContainer para el phpunit 7 yıl önce
DeviceBundle.php 58393337ba Se renombro el bundle 8 yıl önce
README.md fee905fe53 Update README.md 8 yıl önce
composer.json 58393337ba Se renombro el bundle 8 yıl önce

README.md

DeviceBundle

Installation

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@infra.flowdat.com:222/VendorSoftwareFlowdat3/DeviceBundle.git",
        "options": {
                "local_pk": "./keys/bitbucket.id_rsa"
        }
    }
],
"require": {
    "ik/device-bundle": "dev-master"
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new DeviceBundle\DeviceBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "bundles/ik/device-bundle/parameters.yml" }
    - { resource: "@DeviceBundle/Resources/config/services.yml" }

app/config/bundles/ik/device-bundle/parameters.yml

parameters:
    device_check_url: 'http://127.0.0.1/base/app_dev.php/api/devices/check.json'
    device_post_url: 'http://127.0.0.1/base/app_dev.php/api/devices.json'
    device_delete_post_url: 'http://127.0.0.1/base/app_dev.php/api/device.json'

Validators

  • DeviceBundle\Validator\DeviceValidator: Validator que chequea si se puede agregar un dispositivo dependiendo de la licencia actual. Para agregarlo por ej en la entidad OLT:

use DeviceBundle\Validator\Constraints as ValidatorAssert;
use DeviceBundle\Interfaces\DeviceInterface;

/**
 * @ORM\Entity
 * @UniqueEntity("ip")
 * 
 * @ValidatorAssert\Device
 */
class OLT implements DeviceInterface