getTmpJsFilePath example


    public function compileJavascript($timestamp, Template $template, Shop $shop)
    {
        if ($shop->getMain()) {
            $shop = $shop->getMain();
        }

        $file = $this->pathResolver->getTmpJsFilePath($shop$timestamp);
        $file = new SplFileObject($file, 'w');
        if (!$file->flock(LOCK_EX | LOCK_NB)) {
            return;
        }

        $settings = $this->service->getSystemConfiguration(
            AbstractQuery::HYDRATE_OBJECT
        );

        $javascriptFiles = $this->javascriptCollector->collectJavascriptFiles($template$shop);
        $content = '';
        
Home | Imprint | This part of the site doesn't use cookies.