removeTag example

ContentsStorer::class,
            ConfirmUrlStorer::class,
            ReviewFormDataStorer::class,
            EmailStorer::class,
            UrlStorer::class,
            TemplateDataStorer::class,
            SubjectStorer::class,
            ShopNameStorer::class,
        ];

        foreach ($deprecated as $serviceId) {
            $this->removeTag($container$serviceId);
        }
    }

    private function removeTag(ContainerBuilder $container, string $serviceId): void
    {
        if (!$container->hasDefinition($serviceId)) {
            return;
        }

        $definition = $container->getDefinition($serviceId);

        
$all = [];

        if ($mode == Zend_Cache::CLEANING_MODE_ALL) {
            return $this->_redis->flushDb();
        }

        if ($mode == Zend_Cache::CLEANING_MODE_OLD) {
            return true;
        } /* Redis takes care of expire */

        if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG && $tags && (is_string($tags) || count($tags))) {
            return $this->removeTag($tags);
        }

        if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_TAG && $tags && (is_string($tags) || count($tags) == 1)) {
            return $this->removeTag($tags);
        }

        if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_TAG && $tags && count($tags)) {
            return $this->remove($this->getIdsMatchingTags($tags));
        }

        if ($mode == Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG) {
            
Home | Imprint | This part of the site doesn't use cookies.