diff --git a/src/Netzmacht/Contao/Leaflet/Frontend/Helper/FrontendApi.php b/src/Netzmacht/Contao/Leaflet/Frontend/Helper/FrontendApi.php deleted file mode 100644 index 32322e4..0000000 --- a/src/Netzmacht/Contao/Leaflet/Frontend/Helper/FrontendApi.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @copyright 2015 netzmacht creative David Molineus - * @license LGPL 3.0 - * @filesource - * - */ - -namespace Netzmacht\Contao\Leaflet\Frontend\Helper; - -/** - * Class FrontendApi provides access to the frontend api of contao. - * - * @package Netzmacht\Contao\Leaflet\Frontend\Helper - */ -class FrontendApi extends \Frontend -{ - /** - * Call a Contao method no matter if it's protected. - * - * Inspired by Haste. - * - * @param string $method The method name. - * @param array $arguments The arguments. - * - * @see https://github.com/codefog/contao-haste/commits/master/library/Haste/Haste.php - * - * @return mixed - */ - public function call($method, array $arguments = array()) - { - return call_user_func_array(array($this, $method), $arguments); - } -} diff --git a/src/Netzmacht/Contao/Leaflet/Frontend/Helper/InsertTagReplacer.php b/src/Netzmacht/Contao/Leaflet/Frontend/Helper/InsertTagReplacer.php deleted file mode 100644 index 0774c8f..0000000 --- a/src/Netzmacht/Contao/Leaflet/Frontend/Helper/InsertTagReplacer.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @copyright 2015 netzmacht creative David Molineus - * @license LGPL 3.0 - * @filesource - * - */ - -namespace Netzmacht\Contao\Leaflet\Frontend\Helper; - -/** - * This class is a helper to replace insert tags. - * - * @package Netzmacht\Contao\Leaflet\Frontend\Helper - */ -class InsertTagReplacer -{ - /** - * Replace insert tags with their values. - * - * @param string $buffer The text with the tags to be replaced. - * @param boolean $cache If false, non-cacheable tags will be replaced. - * - * @return string - */ - public function replace($buffer, $cache = true) - { - $frontendApi = new FrontendApi(); - - return $frontendApi->call('replaceInsertTags', array($buffer, $cache)); - } -}