PHP 8.3.31
Preview: ChainCacheClearer.php Size: 778 B
/home/getspomw/royalsquad.us/vendor/symfony/http-kernel/CacheClearer/ChainCacheClearer.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\CacheClearer;

/**
 * ChainCacheClearer.
 *
 * @author Dustin Dobervich <ddobervich@gmail.com>
 *
 * @final
 */
class ChainCacheClearer implements CacheClearerInterface
{
    /**
     * @param iterable<mixed, CacheClearerInterface> $clearers
     */
    public function __construct(
        private iterable $clearers = [],
    ) {
    }

    public function clear(string $cacheDir): void
    {
        foreach ($this->clearers as $clearer) {
            $clearer->clear($cacheDir);
        }
    }
}

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
519 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
778 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.23 KB lrw-r--r-- 2026-04-26 08:19:57
Edit Download
1.59 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).