mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2025-11-29 04:03:40 +01:00
Support Contao manage edition.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
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