Sen descrición

Jean Sumara Leopoldo 3c77ecda60 Merge branch 'mapas#2' into 'master' %!s(int64=4) %!d(string=hai) anos
.gitlab 806d5a535f Directory .gitlab added %!s(int64=6) %!d(string=hai) anos
Controller f7922e7a2b Desplegable Tipo de Objeto %!s(int64=7) %!d(string=hai) anos
Entity 33c57e5983 falta use %!s(int64=7) %!d(string=hai) anos
EventListener ae8d73c03a Correcion de error en EventListener/LocationListener.php en la funcion configureShowFields (falta cerrar un tab) %!s(int64=7) %!d(string=hai) anos
Form f7922e7a2b Desplegable Tipo de Objeto %!s(int64=7) %!d(string=hai) anos
Resources 9cf2e05b57 Updated services.yml and removed key from google. %!s(int64=4) %!d(string=hai) anos
Util 9f244d40a1 Se quito un var_dump %!s(int64=7) %!d(string=hai) anos
keys ab6abe6277 Agregado drone %!s(int64=7) %!d(string=hai) anos
.drone.yml c35fa2daa9 Agregado del paso de tags a gogs %!s(int64=7) %!d(string=hai) anos
.gitlab-ci.yml be438ac335 Update .gitlab-ci.yml %!s(int64=5) %!d(string=hai) anos
MapBundle.php c3ee23aa84 Commit inicial %!s(int64=7) %!d(string=hai) anos
README.md 09e723fa10 Actualizado README.md %!s(int64=7) %!d(string=hai) anos
composer.json cbe6fe78fb Se quito version y minimum-stability %!s(int64=7) %!d(string=hai) anos

README.md

MapBundle

Instalación

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/MapBundle.git"
    }
],
"require": {
    "ik/map-bundle": "dev-master"
},

app/AppKernel.php:

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

app/config/config.yml:

imports:
    - { resource: "@MapBundle/Resources/config/services.yml" }

Instalar y habilitar en app/AppKernel.php los bundles:

Mapa

El bundle agrega un tab en la vista create/edit y show de la entidad con un mapa para seleccionar coordenadas. Por ej para la entidad ONU:

use MapBundle\Entity\Interfaces\LocationInterface;
use MapBundle\Entity\Traits\LocationTrait;

class ONU implements LocationInterface
{

    use LocationTrait; 

Luego correr el comando:

php bin/console doctrine:schema:update --force