mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2026-02-28 00:58:15 +01:00
Support Contao manage edition.
This commit is contained in:
108
composer.json
108
composer.json
@@ -1,44 +1,70 @@
|
|||||||
{
|
{
|
||||||
"name":"netzmacht/contao-leaflet-geocode-widget",
|
"name": "netzmacht/contao-leaflet-geocode-widget",
|
||||||
"description":"Geocode widget based on Leaflet",
|
"description": "Geocode widget based on Leaflet",
|
||||||
"keywords":["geocode", "contao", "widget", "leaflet"],
|
"keywords": [
|
||||||
"type":"contao-bundle",
|
"geocode",
|
||||||
"license":"LGPL-3.0+",
|
"contao",
|
||||||
"authors":[
|
"widget",
|
||||||
{
|
"leaflet"
|
||||||
"name":"David Molineus",
|
],
|
||||||
"email":"mail@netzmacht.de",
|
"type": "contao-bundle",
|
||||||
"homepage":"http://www.netzmacht.de",
|
"license": "LGPL-3.0+",
|
||||||
"role":"Project leader"
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Molineus",
|
||||||
|
"email": "mail@netzmacht.de",
|
||||||
|
"homepage": "http://www.netzmacht.de",
|
||||||
|
"role": "Project leader"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"email": "mail@netzmacht.de",
|
||||||
|
"issues": "https://github.com/contao-bootstrap/core/issues",
|
||||||
|
"wiki": "http://contao-bootstrap.netzmacht.de",
|
||||||
|
"source": "https://github.com/contao-bootstrap/core"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.5.0",
|
||||||
|
"contao/core-bundle": "~4.3",
|
||||||
|
"contao-community-alliance/composer-plugin": "~2.4 || ~3.0",
|
||||||
|
"netzmacht/contao-leaflet-libraries": "~1.0",
|
||||||
|
"contao-community-alliance/composer-client": "~0.14"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"netzmacht/contao-build-tools": "~1.1",
|
||||||
|
"contao/manager-plugin": "^2.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"contao/manager-plugin": "<2.0 || >=3.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"netzmacht/contao-leaflet-maps": "Leaflet Maps for Contao"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Netzmacht\\Contao\\Leaflet\\GeocodeWidget\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.0.x-dev",
|
||||||
|
"dev-develop": "1.1.x-dev"
|
||||||
|
},
|
||||||
|
"contao-manager-plugin": "Netzmacht\\Contao\\Leaflet\\GeocodeWidget\\ContaoManager\\Plugin"
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true,
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"type": "composer",
|
||||||
|
"url": "https://legacy-packages-via.contao-community-alliance.org/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "artifact",
|
||||||
|
"url": "packages"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"config": {
|
||||||
|
"component-dir": "../assets/components"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"support":{
|
|
||||||
"email":"mail@netzmacht.de",
|
|
||||||
"issues":"https://github.com/contao-bootstrap/core/issues",
|
|
||||||
"wiki":"http://contao-bootstrap.netzmacht.de",
|
|
||||||
"source":"https://github.com/contao-bootstrap/core"
|
|
||||||
},
|
|
||||||
"require":{
|
|
||||||
"php":">=5.5.0",
|
|
||||||
"contao/core-bundle":"~4.3",
|
|
||||||
"contao-community-alliance/composer-plugin": "~2.4 | ~3.0",
|
|
||||||
"netzmacht/contao-leaflet-libraries":"~1.0"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"netzmacht/contao-build-tools": "~1.1"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"netzmacht/contao-leaflet-maps": "Leaflet Maps for Contao"
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": { "Netzmacht\\Contao\\Leaflet\\GeocodeWidget\\": "src/" }
|
|
||||||
},
|
|
||||||
"extra":{
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "1.0.x-dev",
|
|
||||||
"dev-develop": "1.1.x-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minimum-stability": "dev",
|
|
||||||
"prefer-stable": true
|
|
||||||
}
|
}
|
||||||
|
|||||||
36
src/ContaoManager/Plugin.php
Normal file
36
src/ContaoManager/Plugin.php
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package netzmacht
|
||||||
|
* @author David Molineus <david.molineus@netzmacht.de>
|
||||||
|
* @copyright 2017 netzmacht David Molineus. All rights reserved.
|
||||||
|
* @filesource
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Netzmacht\Contao\Leaflet\GeocodeWidget\ContaoManager;
|
||||||
|
|
||||||
|
use Contao\CoreBundle\ContaoCoreBundle;
|
||||||
|
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
|
||||||
|
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
|
||||||
|
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
|
||||||
|
use Netzmacht\Contao\Leaflet\GeocodeWidget\LeafletGeocodeWidgetBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Plugin
|
||||||
|
*
|
||||||
|
* @package Netzmacht\Contao\Leaflet\GeocodeWidget\ContaoManager
|
||||||
|
*/
|
||||||
|
class Plugin implements BundlePluginInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function getBundles(ParserInterface $parser)
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
BundleConfig::create(LeafletGeocodeWidgetBundle::class)
|
||||||
|
->setLoadAfter([ContaoCoreBundle::class]),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user