CodeExplorer prepareParams example
public function render(string
$library,
$params = null, int
$ttl = 0, ?string
$cacheName = null
): string
{ [$instance,
$method] =
$this->
determineClass($library);
$class =
is_object($instance) ?
get_class($instance) : null;
$params =
$this->
prepareParams($params);
// Is the output cached?
$cacheName = !
empty($cacheName) ?
$cacheName :
str_replace(['\\', '/'
], '',
$class) .
$method .
md5(serialize($params));
if (!
empty($this->cache
) &&
$output =
$this->cache->
get($cacheName)) { return $output;
} if (method_exists($instance, 'initController'
)) {