Support Contao manage edition.

This commit is contained in:
David Molineus
2017-01-26 14:44:25 +01:00
parent 8f5a492c70
commit 633c451164
2 changed files with 103 additions and 41 deletions

View File

@@ -1,7 +1,12 @@
{
"name": "netzmacht/contao-leaflet-geocode-widget",
"description": "Geocode widget based on Leaflet",
"keywords":["geocode", "contao", "widget", "leaflet"],
"keywords": [
"geocode",
"contao",
"widget",
"leaflet"
],
"type": "contao-bundle",
"license": "LGPL-3.0+",
"authors": [
@@ -21,24 +26,45 @@
"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-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"
"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/" }
"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
"prefer-stable": true,
"repositories": [
{
"type": "composer",
"url": "https://legacy-packages-via.contao-community-alliance.org/"
},
{
"type": "artifact",
"url": "packages"
}
],
"config": {
"component-dir": "../assets/components"
}
}

View 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]),
];
}
}