forked from Snck3rs/contao-leaflet-maps
Support PHP 7.0.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
|
- "7.0"
|
||||||
- "7.1"
|
- "7.1"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"source": "https://github.com/netzmacht/contao-leaflet-maps"
|
"source": "https://github.com/netzmacht/contao-leaflet-maps"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1",
|
"php": ">=7.0",
|
||||||
"contao/core-bundle": "^4.4",
|
"contao/core-bundle": "^4.4",
|
||||||
"netzmacht/contao-leaflet-libraries": "^1.0",
|
"netzmacht/contao-leaflet-libraries": "^1.0",
|
||||||
"netzmacht/php-javascript-builder": "^1.0",
|
"netzmacht/php-javascript-builder": "^1.0",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class LeafletDcaListener
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function loadLanguageFile(): void
|
public function loadLanguageFile()
|
||||||
{
|
{
|
||||||
Controller::loadLanguageFile('leaflet');
|
Controller::loadLanguageFile('leaflet');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class MarkerDcaListener
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function initialize(): void
|
public function initialize()
|
||||||
{
|
{
|
||||||
Controller::loadLanguageFile('leaflet');
|
Controller::loadLanguageFile('leaflet');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class LoadAssetsListener
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function onGetJavascriptEvent(): void
|
public function onGetJavascriptEvent()
|
||||||
{
|
{
|
||||||
$this->assets->addJavascript(
|
$this->assets->addJavascript(
|
||||||
'bundles/netzmachtcontaoleaflet/js/contao-leaflet.js',
|
'bundles/netzmachtcontaoleaflet/js/contao-leaflet.js',
|
||||||
@@ -117,7 +117,7 @@ class LoadAssetsListener
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function loadIconsLibraries($icon): void
|
protected function loadIconsLibraries($icon)
|
||||||
{
|
{
|
||||||
foreach ($icon::getRequiredLibraries() as $library) {
|
foreach ($icon::getRequiredLibraries() as $library) {
|
||||||
if (!isset($this->libraries[$library])) {
|
if (!isset($this->libraries[$library])) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ final class RegisterLibrariesListener
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function onInitializeSystem(): void
|
public function onInitializeSystem()
|
||||||
{
|
{
|
||||||
foreach ($this->libraries as $name => $assets) {
|
foreach ($this->libraries as $name => $assets) {
|
||||||
if (!empty($assets['css'])) {
|
if (!empty($assets['css'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user