buildTimestampName example


    public function getCssFilePath(Shop\Shop $shop$timestamp)
    {
        return $this->getCacheDirectory() . DIRECTORY_SEPARATOR . $this->buildTimestampName($timestamp$shop, 'css');
    }

    /** * Helper function which builds the directory path to the tmp * passed css file. * This function is used for generating a .css.tmp file * while writing the theme cache. * The tmp file prevents serving a zero content css file. */
    public function getTmpCssFilePath(Shop\Shop $shop, string $timestamp): string
    {
        

    public function clearThemeCache(Shop $shop$timestamp)
    {
        if ($shop->getMain()) {
            $shop = $shop->getMain();
        }

        $files = [
            $this->pathResolver->buildTimestampName($timestamp$shop, 'css'),
            $this->pathResolver->buildTimestampName($timestamp$shop, 'js'),
        ];

        $this->clearDirectory($files);
    }

    /** * Helper function which compiles the passed less definition. * The shop parameter is required to build the shop url for the files. * * @throws Enlight_Event_Exception */
Home | Imprint | This part of the site doesn't use cookies.