|
4 سال پیش | |
---|---|---|
.gitlab | 6 سال پیش | |
Controller | 7 سال پیش | |
Entity | 7 سال پیش | |
EventListener | 7 سال پیش | |
Form | 7 سال پیش | |
Resources | 4 سال پیش | |
Util | 7 سال پیش | |
keys | 7 سال پیش | |
.drone.yml | 7 سال پیش | |
.gitlab-ci.yml | 5 سال پیش | |
MapBundle.php | 7 سال پیش | |
README.md | 7 سال پیش | |
composer.json | 7 سال پیش |
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:
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