forked from Snck3rs/contao-leaflet-maps
Use symfony translation contracts
This commit is contained in:
@@ -23,16 +23,16 @@
|
|||||||
"docs": "http://leaflet-maps-for-contao.readthedocs.org/"
|
"docs": "http://leaflet-maps-for-contao.readthedocs.org/"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1",
|
"php": "^7.1 || ^8.0",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"contao-community-alliance/meta-palettes": "^2.0 || ^1.11",
|
"contao-community-alliance/meta-palettes": "^2.0",
|
||||||
"contao/core-bundle": "^4.9",
|
"contao/core-bundle": "^4.9",
|
||||||
"doctrine/cache": "^1.0",
|
"doctrine/cache": "^1.0",
|
||||||
"doctrine/dbal": "^2.11 || ^3.0",
|
"doctrine/dbal": "^2.11 || ^3.0",
|
||||||
"menatwork/contao-multicolumnwizard": "^3.3",
|
"menatwork/contao-multicolumnwizard-bundle": "^3.4",
|
||||||
"netzmacht/contao-leaflet-geocode-widget": "^1.2",
|
"netzmacht/contao-leaflet-geocode-widget": "^1.2",
|
||||||
"netzmacht/contao-leaflet-libraries": "^1.3.4",
|
"netzmacht/contao-leaflet-libraries": "^1.7.1.1",
|
||||||
"netzmacht/contao-page-context": "~1.0",
|
"netzmacht/contao-page-context": "~1.0",
|
||||||
"netzmacht/contao-toolkit": "^3.7",
|
"netzmacht/contao-toolkit": "^3.7",
|
||||||
"netzmacht/php-javascript-builder": "^1.0",
|
"netzmacht/php-javascript-builder": "^1.0",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"symfony/http-kernel": "~4.4 || ^5.1",
|
"symfony/http-kernel": "~4.4 || ^5.1",
|
||||||
"symfony/routing": "~4.4 || ^5.1",
|
"symfony/routing": "~4.4 || ^5.1",
|
||||||
"symfony/templating": "~4.4 || ^5.1",
|
"symfony/templating": "~4.4 || ^5.1",
|
||||||
"symfony/translation": "~4.4 || ^5.1",
|
"symfony/translation-contracts": "^1.1 || ^2.0",
|
||||||
"symfony/twig-bundle": "~4.4 || ^5.1",
|
"symfony/twig-bundle": "~4.4 || ^5.1",
|
||||||
"twig/twig": "^2.0 || ^3.0"
|
"twig/twig": "^2.0 || ^3.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ChainRenderer.
|
* Class ChainRenderer.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
|||||||
|
|
||||||
use Contao\FilesModel;
|
use Contao\FilesModel;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FileLabelRenderer
|
* Class FileLabelRenderer
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface LayerLabelRenderer.
|
* Interface LayerLabelRenderer.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
|||||||
|
|
||||||
use Netzmacht\Contao\Leaflet\Model\MarkerModel;
|
use Netzmacht\Contao\Leaflet\Model\MarkerModel;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MarkersLabelRenderer.
|
* Class MarkersLabelRenderer.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ declare(strict_types=1);
|
|||||||
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
||||||
|
|
||||||
use Contao\StringUtil;
|
use Contao\StringUtil;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class OverpassLabelRenderer.
|
* Class OverpassLabelRenderer.
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Backend label renderer for provider layer.
|
* Backend label renderer for provider layer.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
|||||||
|
|
||||||
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ReferenceLabelRenderer.
|
* Class ReferenceLabelRenderer.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer;
|
|||||||
|
|
||||||
use Netzmacht\Contao\Leaflet\Model\VectorModel;
|
use Netzmacht\Contao\Leaflet\Model\VectorModel;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class VectorsLabelRenderer.
|
* Class VectorsLabelRenderer.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ use Netzmacht\Contao\Leaflet\Model\MapModel;
|
|||||||
use Netzmacht\Contao\Toolkit\Component\Hybrid\AbstractHybrid;
|
use Netzmacht\Contao\Toolkit\Component\Hybrid\AbstractHybrid;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class HybridTrait provides method required by the frontend module and content element the same time.
|
* Class HybridTrait provides method required by the frontend module and content element the same time.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use Netzmacht\Contao\Toolkit\Component\Component;
|
|||||||
use Netzmacht\Contao\Toolkit\Component\ComponentFactory;
|
use Netzmacht\Contao\Toolkit\Component\ComponentFactory;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MapElementFactory
|
* Class MapElementFactory
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Frontend\Module;
|
namespace Netzmacht\Contao\Leaflet\Frontend\Module;
|
||||||
|
|
||||||
use Contao\Config;
|
|
||||||
use Contao\CoreBundle\Framework\Adapter;
|
use Contao\CoreBundle\Framework\Adapter;
|
||||||
use Contao\Input;
|
use Contao\Input;
|
||||||
use Netzmacht\Contao\Leaflet\MapProvider;
|
use Netzmacht\Contao\Leaflet\MapProvider;
|
||||||
@@ -22,7 +21,7 @@ use Netzmacht\Contao\Toolkit\Component\Component;
|
|||||||
use Netzmacht\Contao\Toolkit\Component\ComponentFactory;
|
use Netzmacht\Contao\Toolkit\Component\ComponentFactory;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
use Symfony\Component\Templating\EngineInterface as TemplateEngine;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MapElementFactory
|
* Class MapElementFactory
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ use Contao\CoreBundle\Event\MenuEvent;
|
|||||||
use Netzmacht\Contao\Toolkit\View\Assets\AssetsManager;
|
use Netzmacht\Contao\Toolkit\View\Assets\AssetsManager;
|
||||||
use Symfony\Component\HttpFoundation\RequestStack;
|
use Symfony\Component\HttpFoundation\RequestStack;
|
||||||
use Symfony\Component\Routing\RouterInterface as Router;
|
use Symfony\Component\Routing\RouterInterface as Router;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BackendMenuListener adds backend entries to the navigation.
|
* Class BackendMenuListener adds backend entries to the navigation.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ use Contao\StringUtil;
|
|||||||
use Netzmacht\Contao\Leaflet\Model\MapModel;
|
use Netzmacht\Contao\Leaflet\Model\MapModel;
|
||||||
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Module is the helper for the tl_module dca.
|
* Class Module is the helper for the tl_module dca.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ use Netzmacht\Contao\Toolkit\Data\Model\RepositoryManager;
|
|||||||
use Netzmacht\Contao\Toolkit\Dca\Listener\AbstractListener;
|
use Netzmacht\Contao\Toolkit\Dca\Listener\AbstractListener;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Layer is the helper class for the tl_leaflet_layer dca.
|
* Class Layer is the helper class for the tl_leaflet_layer dca.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ use Netzmacht\Contao\Toolkit\Dca\Listener\AbstractListener;
|
|||||||
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
use Netzmacht\Contao\Toolkit\Dca\Options\OptionsBuilder;
|
||||||
use Symfony\Component\HttpFoundation\Session\Session;
|
use Symfony\Component\HttpFoundation\Session\Session;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Map is the helper class for the tl_leaflet_map dca.
|
* Class Map is the helper class for the tl_leaflet_map dca.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use Contao\DataContainer;
|
|||||||
use Contao\StringUtil;
|
use Contao\StringUtil;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
||||||
use Netzmacht\LeafletPHP\Value\LatLng;
|
use Netzmacht\LeafletPHP\Value\LatLng;
|
||||||
use Symfony\Component\Translation\TranslatorInterface as Translator;
|
use Symfony\Contracts\Translation\TranslatorInterface as Translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Validator.
|
* Class Validator.
|
||||||
|
|||||||
Reference in New Issue
Block a user