Remove not needed workaround classes.

This commit is contained in:
David Molineus
2015-10-30 23:35:35 +01:00
parent 374fe905a0
commit 9be8629303
2 changed files with 0 additions and 72 deletions

View File

@@ -1,37 +0,0 @@
<?php
/**
* @package dev
* @author David Molineus <david.molineus@netzmacht.de>
* @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);
}
}

View File

@@ -1,35 +0,0 @@
<?php
/**
* @package dev
* @author David Molineus <david.molineus@netzmacht.de>
* @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));
}
}