Ingen beskrivning

Guillermo Espinoza 09e723fa10 Actualizado README.md 7 år sedan
Controller a585b4384e Location form type 7 år sedan
Entity a585b4384e Location form type 7 år sedan
EventListener a585b4384e Location form type 7 år sedan
Form a585b4384e Location form type 7 år sedan
Resources a585b4384e Location form type 7 år sedan
MapBundle.php c3ee23aa84 Commit inicial 7 år sedan
README.md 09e723fa10 Actualizado README.md 7 år sedan
composer.json 00c5c9827c Update 'composer.json' 7 år sedan

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