Przeglądaj źródła

Vendor ik/extra-data-bundle

Guillermo Espinoza 8 lat temu
rodzic
commit
46622cd7f5
4 zmienionych plików z 37 dodań i 4 usunięć
  1. 1 0
      app/AppKernel.php
  2. 6 1
      composer.json
  3. 26 2
      composer.lock
  4. 4 1
      src/FTTHBundle/Entity/ONU.php

+ 1 - 0
app/AppKernel.php

@@ -33,6 +33,7 @@ class AppKernel extends Kernel
             new Base\OAuthClientBundle\BaseOAuthClientBundle(),
             new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
             new TemplateBundle\TemplateBundle(),
+            new ExtraDataBundle\ExtraDataBundle(),
         ];
 
         if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {

+ 6 - 1
composer.json

@@ -48,6 +48,10 @@
         {
             "type": "vcs",
             "url":  "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/TemplateBundle.git"
+        },
+        {
+            "type": "vcs",
+            "url":  "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/ExtraDataBundle.git"
         }
     ],
     "config":{
@@ -77,7 +81,8 @@
         "hwi/oauth-bundle": "^0.5.3",
         "ik/workflow-bundle": "dev-master",
         "php-amqplib/rabbitmq-bundle": "^1.12",
-        "ik/template-bundle": "dev-master"
+        "ik/template-bundle": "dev-master",
+        "ik/extra-data-bundle": "dev-master"
     },
     "require-dev": {
         "sensio/generator-bundle": "^3.0",

+ 26 - 2
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "21317317728727b815d01a2f8edb1353",
+    "content-hash": "b968a739c5c0269a94d6a7ef67c104e0",
     "packages": [
         {
             "name": "behat/transliterator",
@@ -1279,6 +1279,29 @@
             ],
             "time": "2017-04-20 18:25:44"
         },
+        {
+            "name": "ik/extra-data-bundle",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/ExtraDataBundle.git",
+                "reference": "b45963df9a97a39082df54ca4200fb25af9ab20f"
+            },
+            "type": "library",
+            "autoload": {
+                "psr-4": {
+                    "ExtraDataBundle\\": ""
+                }
+            },
+            "description": "Flowdat 3 Extra Data Bundle",
+            "keywords": [
+                "Admin Generator",
+                "admin",
+                "bundle",
+                "extra-data"
+            ],
+            "time": "2017-04-21 18:22:23"
+        },
         {
             "name": "ik/oauthclient-bundle",
             "version": "dev-master",
@@ -5452,7 +5475,8 @@
         "ik/oauthclient-bundle": 20,
         "ik/webservice-bundle": 20,
         "ik/workflow-bundle": 20,
-        "ik/template-bundle": 20
+        "ik/template-bundle": 20,
+        "ik/extra-data-bundle": 20
     },
     "prefer-stable": false,
     "prefer-lowest": false,

+ 4 - 1
src/FTTHBundle/Entity/ONU.php

@@ -3,10 +3,11 @@
 namespace FTTHBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
+use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
+use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
 use Gedmo\Mapping\Annotation as Gedmo;
 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
 use Symfony\Component\Validator\Constraints as Assert;
-use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
 use Symfony\Component\Workflow\Exception\ExceptionInterface;
 
 /**
@@ -20,6 +21,8 @@ use Symfony\Component\Workflow\Exception\ExceptionInterface;
 class ONU
 {
 
+    use ExtraDataTrait;
+    
     /**
      * @var int
      *