Skip to content

Commit

Permalink
IBX-1228: Adapted CacheGeneratorInterface namespace (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Oboza authored Oct 26, 2021
1 parent 264404b commit 573022d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bundle/Cache/PersistenceCachePurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface;
use eZ\Publish\SPI\Persistence\Content\Location\Handler as LocationHandlerInterface;
use eZ\Publish\Core\Base\Exceptions\InvalidArgumentType;
use Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface;
use Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface;

/**
* Class PersistenceCachePurger.
Expand Down Expand Up @@ -44,7 +44,7 @@ class PersistenceCachePurger implements CacheClearerInterface
protected $locationHandler;

/**
* @var \Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface
* @var \Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface
*/
protected $cacheIdentifierGenerator;

Expand All @@ -70,7 +70,7 @@ class PersistenceCachePurger implements CacheClearerInterface
*
* @param \Symfony\Component\Cache\Adapter\TagAwareAdapterInterface $cache
* @param \eZ\Publish\SPI\Persistence\Content\Location\Handler $locationHandler (using SPI cache instance so calls are cached)
* @param \Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface $cacheIdentifierGenerator
* @param \Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface $cacheIdentifierGenerator
*/
public function __construct(
TagAwareAdapterInterface $cache,
Expand Down
2 changes: 1 addition & 1 deletion bundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ services:
arguments:
- "@ezpublish.cache_pool"
- "@ezpublish.spi.persistence.cache.locationHandler"
- '@Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface'
- '@Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface'
- '%ezpublish_legacy.clear_all_spi_cache_on_symfony_clear_cache%'
- '%ezpublish_legacy.clear_all_spi_cache_from_legacy%'
tags:
Expand Down
4 changes: 2 additions & 2 deletions bundle/Tests/Cache/PersistenceCachePurgerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger;
use eZ\Publish\SPI\Persistence\Content\Location;
use eZ\Publish\SPI\Persistence\Content\Location\Handler;
use Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface;
use Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface;
use Symfony\Component\Cache\Adapter\TagAwareAdapterInterface;
use PHPUnit\Framework\TestCase;

Expand All @@ -26,7 +26,7 @@ class PersistenceCachePurgerTest extends TestCase
private $locationHandler;

/**
* @var \Ibexa\Core\Persistence\Cache\Tag\CacheIdentifierGeneratorInterface|\PHPUnit\Framework\MockObject\MockObject
* @var \Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface|\PHPUnit\Framework\MockObject\MockObject
*/
protected $cacheIdentifierGenerator;

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"ezsystems/ezpublish-legacy-installer": "^2.0.4",
"ezsystems/ezpublish-legacy": "^2019.03",
"ezsystems/ezpublish-kernel": "^7.5.21",
"ezsystems/ezpublish-kernel": "^7.5.24",
"ezsystems/ezplatform-xmltext-fieldtype": "^1.8",
"sensio/distribution-bundle": "^5.0.24",
"twig/twig": "^1.35 || ^2.5"
Expand Down

0 comments on commit 573022d

Please sign in to comment.