説明なし

Jean Sumara Leopoldo 62c966930f Added a function to add timeOltScan or executeSnmp to NAS when we click on button to update the devices 5 年 前
.gitlab 671e1feeb4 Directory .gitlab added 6 年 前
Command e5b681266f Chequeo previo a deshabilitar/habilitar filtro soft_deleteable. 7 年 前
EventListener 62c966930f Added a function to add timeOltScan or executeSnmp to NAS when we click on button to update the devices 5 年 前
Interfaces 5ff7b53da7 Modificado solo DeviceListener para no enviar actualizaciones en postPersist o postUpdate de elementos softDelete. 7 年 前
Resources 2ab9cef5cd traduccion Device-Bundle 6 年 前
Services f801d90020 Se actualizo la definicion del servicio monolog handler 7 年 前
Twig 44b9f6833d FD3-394 log dispositivos 7 年 前
Utils 17a53335cc Fix nombre constant 7 年 前
Validator 61a172c14a Agregado del setContainer para el phpunit 7 年 前
keys b735725a63 Agregado drone 7 年 前
.drone.yml c6801047c8 Agregado del paso de tags a gogs 7 年 前
.gitlab-ci.yml d881d3bec8 Update .gitlab-ci.yml 5 年 前
DeviceBundle.php 58393337ba Se renombro el bundle 8 年 前
README.md fee905fe53 Update README.md 8 年 前
composer.json 3332f266c8 composer.json edited online with Bitbucket 7 年 前

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