determineClass 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));

        
Home | Imprint | This part of the site doesn't use cookies.