Tidak Ada Deskripsi

Luciano Andrade 3332f266c8 composer.json edited online with Bitbucket 7 tahun lalu
Command e5b681266f Chequeo previo a deshabilitar/habilitar filtro soft_deleteable. 7 tahun lalu
EventListener 328da5d089 refactory device listener 7 tahun lalu
Interfaces 5ff7b53da7 Modificado solo DeviceListener para no enviar actualizaciones en postPersist o postUpdate de elementos softDelete. 7 tahun lalu
Resources 584909edec Se quito service devicelog monolog 7 tahun lalu
Services f801d90020 Se actualizo la definicion del servicio monolog handler 7 tahun lalu
Twig 44b9f6833d FD3-394 log dispositivos 7 tahun lalu
Utils 17a53335cc Fix nombre constant 7 tahun lalu
Validator 61a172c14a Agregado del setContainer para el phpunit 7 tahun lalu
keys b735725a63 Agregado drone 7 tahun lalu
.drone.yml c6801047c8 Agregado del paso de tags a gogs 7 tahun lalu
DeviceBundle.php 58393337ba Se renombro el bundle 8 tahun lalu
README.md fee905fe53 Update README.md 8 tahun lalu
composer.json 3332f266c8 composer.json edited online with Bitbucket 7 tahun lalu

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