blob: 04af07ed8dc1a5b54dcdd9932fb1a72b51992c11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace Smarty\FunctionHandler;
use Smarty\Template;
class BCPluginWrapper extends Base {
private $callback;
public function __construct($callback, bool $cacheable = true) {
$this->callback = $callback;
$this->cacheable = $cacheable;
}
public function handle($params, Template $template) {
$func = $this->callback;
return $func($params, $template);
}
}
|