Aucune description

Guillermo Espinoza f6b8fdcefd Se agrego información de la ubicación del Device para guardar en Base il y a 7 ans
EventListener f6b8fdcefd Se agrego información de la ubicación del Device para guardar en Base il y a 7 ans
Interfaces bf1029b73d Refactory listener. Se agrego método en Interface il y a 8 ans
Resources f801d90020 Se actualizo la definicion del servicio monolog handler il y a 7 ans
Services f801d90020 Se actualizo la definicion del servicio monolog handler il y a 7 ans
Twig f41487cb33 Merge branch 'master' of ssh://infra.flowdat.com:222/VendorSoftwareFlowdat3/DeviceBundle il y a 7 ans
Utils d3d8b2be63 Se agrego clase con devicetypes il y a 8 ans
Validator 4fe6768805 Fix validator il y a 8 ans
DeviceBundle.php 58393337ba Se renombro el bundle il y a 8 ans
README.md fee905fe53 Update README.md il y a 8 ans
composer.json 58393337ba Se renombro el bundle il y a 8 ans

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