Skip to content

Commit

Permalink
Merge branch '6.8' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Feb 9, 2017
2 parents f89c03b + 7f2cea2 commit 1bdad65
Show file tree
Hide file tree
Showing 33 changed files with 81 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/bc/changes-6.8.md
@@ -0,0 +1,13 @@
# Backwards compatibility changes

Changes affecting version compatibility with former or future versions.

## Changes

## Deprecations

* Most HTTP cache related elements from the kernel are deprecated in favour of the ezsystems/ezplatform-http-cache package

This mostly includes the contents of the eZ/Publish/Core/MVC/Symfony/Cache/Http directory.
Nothing is removed from this version and deprecation messages will not be logged.
When installed and enabled, the newly introduced package will replace the services from the kernel with its own.
Expand Up @@ -13,6 +13,8 @@

/**
* Factory for Varnish proxy client.
*
* @deprecated since 6.8. Use the VarnishProxyClientFactory from the platform-http-cache package.
*/
class VarnishProxyClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/GatewayCachePurger.php
Expand Up @@ -10,6 +10,8 @@

/**
* Interface for gateway cache purgers, i.e. Http cache purgers.
*
* @deprecated Since 6.8, use PurgeClientInterface directly.
*/
interface GatewayCachePurger
{
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/ContentPurger.php
Expand Up @@ -12,6 +12,8 @@
* Interface allowing for HttpCache stores to purge specific content.
* When purging content by locationId, purgeByRequest() would receive a Request object with X-Location-Id or X-Group-Location-Id headers
* indicating which locations to purge.
*
* @deprecates since 6.8. The interface should not be necessary anymore.
*/
interface ContentPurger extends RequestAwarePurger
{
Expand Down
Expand Up @@ -15,6 +15,8 @@

/**
* Adds content's assigned locations to the cache-clear list.
*
* @deprecated since 6.8. Smart cache is replaced by http-cache multi-tagging from the platform-http-cache package.
*/
class AssignedLocationsListener implements EventSubscriberInterface
{
Expand Down
Expand Up @@ -16,6 +16,8 @@
/**
* Adds parent locations to the Http cache clear list, for given content.
* Will consider direct parent for all content's locations.
*
* @deprecated since 6.8. Smart cache is replaced by http-cache multi-tagging from the platform-http-cache package.
*/
class ParentLocationsListener implements EventSubscriberInterface
{
Expand Down
Expand Up @@ -16,6 +16,8 @@
/**
* Adds locations from related content to the Http cache clear list, for given content.
* Both relation and reverse relation are taken into account.
*
* @deprecated since 6.8. Smart cache is replaced by http-cache multi-tagging from the platform-http-cache package.
*/
class RelatedLocationsListener implements EventSubscriberInterface
{
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/FOSPurgeClient.php
Expand Up @@ -16,6 +16,8 @@
*
* Only support BAN requests on purpose, to be able to invalidate cache for a
* collection of Location/Content objects.
*
* @deprecated since 6.8. Use FOSPurgeClient from the PlatformHttpCache package.
*/
class FOSPurgeClient implements PurgeClientInterface
{
Expand Down
5 changes: 5 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/InstantCachePurger.php
Expand Up @@ -15,6 +15,11 @@
use eZ\Publish\Core\MVC\Symfony\MVCEvents;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
* Class InstantCachePurger.
*
* @deprecated since 6.8 will be removed in 7.0, use PurgeClient directly.
*/
class InstantCachePurger implements GatewayCachePurger
{
/**
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/LocalPurgeClient.php
Expand Up @@ -14,6 +14,8 @@
/**
* LocalPurgeClient emulates an Http PURGE request received by the cache store.
* Handy for mono-server.
*
* @deprecated since 6.8. Use LocalPurgeClient from the platform-http-cache package.
*/
class LocalPurgeClient implements PurgeClientInterface
{
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/LocationAwareStore.php
Expand Up @@ -16,6 +16,8 @@

/**
* LocationAwareStore implements all the logic for storing cache metadata regarding locations.
*
* @deprecated since 6.8. Replaced by TagAwareStore from the http-cache multi-tagging package.
*/
class LocationAwareStore extends Store implements ContentPurger
{
Expand Down
2 changes: 2 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/Http/RequestAwarePurger.php
Expand Up @@ -12,6 +12,8 @@

/**
* Interface allowing implementor (cache Store) to purge Http cache from a request object.
*
* @deprecated since 6.8. Use RequestAwarePurger from the platform-http-cache package.
*/
interface RequestAwarePurger
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling AssignSectionSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class AssignSectionSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -14,6 +14,8 @@
* A slot handling AssignUserToUserGroupSignal.
*
* @todo This might be incomplete: what about the user's own http cache (user hash) ?
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class AssignUserToUserGroupSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling CopyContentSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class CopyContentSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling CreateLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class CreateLocationSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -14,6 +14,8 @@
* A slot handling DeleteContentSignal.
*
* @todo Change to clear precise cache items on content deletion (implies changes to how this signal is used and emitted).
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class DeleteContentSlot extends PurgeAllHttpCacheSlot
{
Expand Down
Expand Up @@ -13,6 +13,8 @@

/**
* A slot handling DeleteLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class DeleteLocationSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling DeleteVersionSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class DeleteVersionSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling HideLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class HideLocationSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -14,6 +14,8 @@

/**
* A abstract legacy slot covering common functions needed for legacy slots.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
abstract class HttpCacheSlot extends Slot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling MoveSubtreeSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class MoveSubtreeSlot extends PurgeAllHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling PublishVersionSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class PublishVersionSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -15,6 +15,8 @@
*
* Will by default use the contentId property of the signal object, as it is the most common. Override the
* extractContentId() method in your own signal to use a different property.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
abstract class PurgeForContentHttpCacheSlot extends HttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling RecoverSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class RecoverSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling SetContentStateSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class SetContentStateSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling SwapLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class SwapLocationSlot extends HttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling TrashSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class TrashSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -17,6 +17,8 @@
* Is this right ? Does it require a full wipe of the cache ? Very unlikely.
* The User's Content's HTTP cache must be cleared, yes.
* And the user must be logged out, or its user hash cleared (not sure we can without clearing for all users)
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class UnassignUserFromUserGroupSlot extends PurgeAllHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling UnhideLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class UnhideLocationSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling UpdateLocationSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class UpdateLocationSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
Expand Up @@ -12,6 +12,8 @@

/**
* A slot handling UpdateUserSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
*/
class UpdateUserSlot extends PurgeForContentHttpCacheSlot
{
Expand Down
3 changes: 3 additions & 0 deletions eZ/Publish/Core/MVC/Symfony/Cache/PurgeClientInterface.php
Expand Up @@ -8,6 +8,9 @@
*/
namespace eZ\Publish\Core\MVC\Symfony\Cache;

/**
* @deprecated since 6.8. Use PurgeClientInterface from the platform-http-cache package.
*/
interface PurgeClientInterface
{
/**
Expand Down

0 comments on commit 1bdad65

Please sign in to comment.