Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@
"psr-4": {
"Ibexa\\HttpCache\\": "src/lib/",
"Ibexa\\Bundle\\HttpCache\\": "src/bundle/",
"Ibexa\\Contracts\\HttpCache\\": "src/contracts/",
"EzSystems\\PlatformHttpCacheBundle\\": "src/bundle/"
"Ibexa\\Contracts\\HttpCache\\": "src/contracts/"
}
},
"autoload-dev": {
"psr-4": {
"Ibexa\\Tests\\HttpCache\\": "tests/lib/",
"Ibexa\\Tests\\Bundle\\HttpCache\\": "tests/bundle/",
"EzSystems\\PlatformHttpCacheBundle\\Tests\\": "tests"
"Ibexa\\Tests\\Bundle\\HttpCache\\": "tests/bundle/"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion features/setup/symfonyCache.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ index 9982c21..03ac40a 100644
<?php

use App\Kernel;
+use EzSystems\PlatformHttpCacheBundle\AppCache;
+use Ibexa\Bundle\HttpCache\AppCache;
+use Symfony\Component\HttpFoundation\Request;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
Expand Down
2 changes: 0 additions & 2 deletions src/bundle/AppCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,3 @@ protected function cleanupHeadersForProd(Response $response)
}
}
}

class_alias(AppCache::class, 'EzSystems\PlatformHttpCacheBundle\AppCache');
2 changes: 0 additions & 2 deletions src/bundle/Controller/InvalidateTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,3 @@ public function tokenAction(Request $request)
return $response;
}
}

class_alias(InvalidateTokenController::class, 'EzSystems\PlatformHttpCacheBundle\Controller\InvalidateTokenController');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/DriverPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ public static function getTaggedService(ContainerBuilder $container, $tag)
return $configuredTagHandlerServiceId;
}
}

class_alias(DriverPass::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\Compiler\DriverPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/KernelPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ protected function isCachePurger($id)
return strpos($id, 'ezpublish.http_cache.purger.') === 0;
}
}

class_alias(KernelPass::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\Compiler\KernelPass');
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function process(ContainerBuilder $container)
$dispatcher->replaceArgument(0, $taggers);
}
}

class_alias(ResponseTaggersPass::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\Compiler\ResponseTaggersPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/VarnishCachePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ private function processVarnishProxyClientSettings(ContainerBuilder $container)
);
}
}

class_alias(VarnishCachePass::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\Compiler\VarnishCachePass');
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,3 @@ private function getExtraConfigParsers()
return $this->httpCacheExtension->getExtraConfigParsers();
}
}

class_alias(HttpCacheConfigParser::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\ConfigResolver\HttpCacheConfigParser');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ public function getConfigTreeBuilder()
return new TreeBuilder('ibexa_http_cache');
}
}

class_alias(Configuration::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\Configuration');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/IbexaHttpCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ public function getExtraConfigParsers()
return $this->extraConfigParsers;
}
}

class_alias(IbexaHttpCacheExtension::class, 'EzSystems\PlatformHttpCacheBundle\DependencyInjection\EzPlatformHttpCacheExtension');
2 changes: 0 additions & 2 deletions src/bundle/IbexaHttpCacheBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,3 @@ public function registerConfigParser(ContainerBuilder $container)
);
}
}

class_alias(IbexaHttpCacheBundle::class, 'EzSystems\PlatformHttpCacheBundle\EzSystemsPlatformHttpCacheBundle');
2 changes: 0 additions & 2 deletions src/contracts/Handler/ContentTagInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,3 @@ public function addRelationLocationTags(array $locationIds);
*/
public function addContentTypeTags(array $contentTypeIds);
}

class_alias(ContentTagInterface::class, 'EzSystems\PlatformHttpCacheBundle\Handler\ContentTagInterface');
2 changes: 0 additions & 2 deletions src/contracts/PurgeClient/PurgeClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ public function purge(array $tags): void;
*/
public function purgeAll(): void;
}

class_alias(PurgeClientInterface::class, 'EzSystems\PlatformHttpCacheBundle\PurgeClient\PurgeClientInterface');
2 changes: 0 additions & 2 deletions src/contracts/ResponseTagger/ResponseTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ interface ResponseTagger
*/
public function tag($value);
}

class_alias(ResponseTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\ResponseTagger');
2 changes: 0 additions & 2 deletions src/lib/ContextProvider/RoleIdentify.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,3 @@ static function (Repository $repository) use ($user) {
$context->addParameter('roleLimitationList', $limitationValues);
}
}

class_alias(RoleIdentify::class, 'EzSystems\PlatformHttpCacheBundle\ContextProvider\RoleIdentify');
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,3 @@ public static function getSubscribedEvents()
];
}
}

class_alias(ConditionallyRemoveVaryHeaderListener::class, 'EzSystems\PlatformHttpCacheBundle\EventListener\ConditionallyRemoveVaryHeaderListener');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/CachePurge/AbstractSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ public function getContentUrlTags(int $urlId): array
return $tags;
}
}

class_alias(AbstractSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\AbstractSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,3 @@ private function isContentTypeFullyTranslatable(ContentType $contentType): bool
});
}
}

class_alias(ContentEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\ContentEventsSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,3 @@ public function onUpdateContentTypeGroup(UpdateContentTypeGroupEvent $event): vo
]);
}
}

class_alias(ContentTypeEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\ContentTypeEventsSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,3 @@ public function onUpdateLocation(UpdateLocationEvent $event): void
$this->purgeClient->purge($tags);
}
}

class_alias(LocationEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\LocationEventsSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ public function onSetContentState(SetContentStateEvent $event): void
$this->purgeClient->purge($tags);
}
}

class_alias(ObjectStateEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\ObjectStateEventsSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/CachePurge/RoleEventsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ public function clearUserContextHashCache(Event $event)
]);
}
}

class_alias(RoleEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\RoleEventsSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,3 @@ public function onAssignSectionToSubtree(AssignSectionToSubtreeEvent $event): vo
$this->purgeClient->purge($tags);
}
}

class_alias(SectionEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\SectionEventsSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ public function onDeleteTranslation(DeleteTranslationEvent $event): void
$this->purgeClient->purge($tags);
}
}

class_alias(TranslationEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\TranslationEventsSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/CachePurge/TrashEventsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function onRecover(RecoverEvent $event): void
$this->purgeClient->purge($tags);
}
}

class_alias(TrashEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\TrashEventsSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/CachePurge/UrlEventsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ public function onUrlUpdate(UpdateUrlEvent $event): void
}
}
}

class_alias(UrlEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\UrlEventsSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/CachePurge/UserEventsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ public function onUpdateUser(UpdateUserEvent $event): void
$this->purgeClient->purge($tags);
}
}

class_alias(UserEventsSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\CachePurge\UserEventsSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/HiddenLocationExceptionSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function tagHiddenLocationExceptionResponse(ExceptionEvent $event)
$this->contentInfoTagger->tag($location->getContentInfo());
}
}

class_alias(HiddenLocationExceptionSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\HiddenLocationExceptionSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/HttpCacheResponseSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ public function configureCache(ResponseEvent $event)
// NB!: FOSHTTPCacheBundle is taking care about writing the tags in own tag handler happening with priority 0
}
}

class_alias(HttpCacheResponseSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\HttpCacheResponseSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/RequestEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public function onKernelRequestForward(RequestEvent $event): void
}
}
}

class_alias(RequestEventSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\RequestEventSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/RestKernelViewSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,3 @@ protected function getTags($value)
return $tags;
}
}

class_alias(RestKernelViewSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\RestKernelViewSubscriber');
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ public function checkIfRequestForUserContextHash(RequestEvent $event)
$this->innerSubscriber->onKernelRequest($event);
}
}

class_alias(UserContextSiteAccessMatchSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\UserContextSiteAccessMatchSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/UserContextSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,3 @@ public function tagUserContext(ResponseEvent $event)
$response->headers->set($this->tagHeader, $this->prefixService->getRepositoryPrefix() . 'ez-user-context-hash');
}
}

class_alias(UserContextSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\UserContextSubscriber');
2 changes: 0 additions & 2 deletions src/lib/EventSubscriber/XLocationIdResponseSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,3 @@ public function rewriteCacheHeader(ResponseEvent $event)
$response->headers->remove(static::LOCATION_ID_HEADER);
}
}

class_alias(XLocationIdResponseSubscriber::class, 'EzSystems\PlatformHttpCacheBundle\EventSubscriber\XLocationIdResponseSubscriber');
2 changes: 0 additions & 2 deletions src/lib/Handler/TagHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,3 @@ public function addContentTypeTags(array $contentTypeIds)
}, $contentTypeIds));
}
}

class_alias(TagHandler::class, 'EzSystems\PlatformHttpCacheBundle\Handler\TagHandler');
2 changes: 0 additions & 2 deletions src/lib/Proxy/UserContextListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ protected function cleanupHashLookupRequest(Request $hashLookupRequest, Request
$hashLookupRequest->attributes->set('_ez_original_request', $originalRequest);
}
}

class_alias(UserContextListener::class, 'EzSystems\PlatformHttpCacheBundle\Proxy\UserContextListener');
2 changes: 0 additions & 2 deletions src/lib/ProxyClient/HttpDispatcherFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ public function buildHttpDispatcher(array $servers, string $baseUrl = '')
return new $this->httpDispatcherClass($allServers, $baseUrl);
}
}

class_alias(HttpDispatcherFactory::class, 'EzSystems\PlatformHttpCacheBundle\ProxyClient\HttpDispatcherFactory');
2 changes: 0 additions & 2 deletions src/lib/ProxyClient/Varnish.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ protected function queueRequest($method, $url, array $headers, $validateHost = t
parent::queueRequest($method, $url, $this->fetchAndMergeAuthHeaders($headers), $body);
}
}

class_alias(Varnish::class, 'EzSystems\PlatformHttpCacheBundle\ProxyClient\Varnish');
2 changes: 0 additions & 2 deletions src/lib/PurgeClient/LocalPurgeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function purgeAll(): void
$this->cacheStore->invalidateTags(['ez-all']);
}
}

class_alias(LocalPurgeClient::class, 'EzSystems\PlatformHttpCacheBundle\PurgeClient\LocalPurgeClient');
2 changes: 0 additions & 2 deletions src/lib/PurgeClient/RepositoryPrefixDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ public function purgeAll(): void
$this->purgeClient->purgeAll();
}
}

class_alias(RepositoryPrefixDecorator::class, 'EzSystems\PlatformHttpCacheBundle\PurgeClient\RepositoryPrefixDecorator');
2 changes: 0 additions & 2 deletions src/lib/PurgeClient/VarnishPurgeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function purgeAll(): void
$this->cacheManager->invalidateTags(['ez-all']);
}
}

class_alias(VarnishPurgeClient::class, 'EzSystems\PlatformHttpCacheBundle\PurgeClient\VarnishPurgeClient');
2 changes: 0 additions & 2 deletions src/lib/RepositoryTagPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ public function getRepositoryPrefix()
return (string) (empty($repositoryIdentifier) ? '' : $this->repositoryMap[$repositoryIdentifier]);
}
}

class_alias(RepositoryTagPrefix::class, 'EzSystems\PlatformHttpCacheBundle\RepositoryTagPrefix');
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ private function getDefaultTTL(): int
return (int)$this->configResolver->getParameter('content.default_ttl');
}
}

class_alias(ConfigurableResponseCacheConfigurator::class, 'EzSystems\PlatformHttpCacheBundle\ResponseConfigurator\ConfigurableResponseCacheConfigurator');
2 changes: 0 additions & 2 deletions src/lib/ResponseConfigurator/ResponseCacheConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ public function enableCache(Response $response);
*/
public function setSharedMaxAge(Response $response);
}

class_alias(ResponseCacheConfigurator::class, 'EzSystems\PlatformHttpCacheBundle\ResponseConfigurator\ResponseCacheConfigurator');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Delegator/ContentValueViewTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ public function tag($view)
$this->contentInfoTagger->tag($contentInfo);
}
}

class_alias(ContentValueViewTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\ContentValueViewTagger');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Delegator/DispatcherTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ public function tag($value)
}
}
}

class_alias(DispatcherTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\DispatcherTagger');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Delegator/LocationValueViewTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ public function tag($view)
$this->locationTagger->tag($location);
}
}

class_alias(LocationValueViewTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Delegator\LocationValueViewTagger');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Value/AbstractValueTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ public function __construct(FosResponseTagger $responseTagger)
$this->responseTagger = $responseTagger;
}
}

class_alias(AbstractValueTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Value\AbstractValueTagger');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Value/ContentInfoTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ public function tag($value)
}
}
}

class_alias(ContentInfoTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Value\ContentInfoTagger');
2 changes: 0 additions & 2 deletions src/lib/ResponseTagger/Value/LocationTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ static function ($pathItem) {
);
}
}

class_alias(LocationTagger::class, 'EzSystems\PlatformHttpCacheBundle\ResponseTagger\Value\LocationTagger');
2 changes: 0 additions & 2 deletions src/lib/Twig/ContentTaggingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,3 @@ public function tagHttpCacheForRelationLocationIds($locationIds)
$this->contentTagHandler->addRelationLocationTags((array)$locationIds);
}
}

class_alias(ContentTaggingExtension::class, 'EzSystems\PlatformHttpCacheBundle\Twig\ContentTaggingExtension');
2 changes: 0 additions & 2 deletions tests/lib/ContextProvider/RoleIdentifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,3 @@ protected function getUserServiceMock()
->getMockForAbstractClass();
}
}

class_alias(RoleIdentifyTest::class, 'EzSystems\PlatformHttpCacheBundle\Tests\ContextProvider\RoleIdentifyTest');
2 changes: 0 additions & 2 deletions tests/lib/PurgeClient/LocalPurgeClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ static function ($id) {
$purgeClient->purge($keys);
}
}

class_alias(LocalPurgeClientTest::class, 'EzSystems\PlatformHttpCacheBundle\Tests\PurgeClient\LocalPurgeClientTest');
2 changes: 0 additions & 2 deletions tests/lib/PurgeClient/RepositoryPrefixDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,3 @@ public function testPurgeAll()
$this->prefixDecorator->purgeAll();
}
}

class_alias(RepositoryPrefixDecoratorTest::class, 'EzSystems\PlatformHttpCacheBundle\Tests\PurgeClient\RepositoryPrefixDecoratorTest');
2 changes: 0 additions & 2 deletions tests/lib/PurgeClient/VarnishPurgeClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,3 @@ public function testPurgeAll()
$this->purgeClient->purgeAll();
}
}

class_alias(VarnishPurgeClientTest::class, 'EzSystems\PlatformHttpCacheBundle\Tests\PurgeClient\VarnishPurgeClientTest');