Aucune description

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

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