Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Deprecate capability "expiredRead" #123

Merged
merged 1 commit into from
Dec 16, 2016
Merged

Deprecate capability "expiredRead" #123

merged 1 commit into from
Dec 16, 2016

Conversation

marc-mabe
Copy link
Member

@marc-mabe marc-mabe commented Nov 5, 2016

See #81

This capability does not make sense as it was previously for informing
that items of a storage adapter can be read if the TTL will be increased
or set to infinity but this only works on storage adapters with capability
static_ttl and increasing the TTL on the same time means that the item
is no longer expired. So it's basically providing the same information as
static_ttl but from a wrong PoV.

The capability is now returning the information provided by static_ttl
and will trigger a E_USER_DEPRECATED message.

This capability does not make sense as it was previusly for informing
that items if a storage adapter can be read if the TTL will be increased
or set to infinity but this only works on storage adapters with capability
"static_ttl" and increasing the TTL on the same time means that the item
is no longer expired. So it's basically providing the same information as
"static_ttl" but from a wrong PoV.

The capability is now returning the information provided by "static_ttl"
and will trigger a E_USER_DEPRECATED message.
@marc-mabe marc-mabe changed the title Deprecated capability "expiredRead" Deprecate capability "expiredRead" Nov 5, 2016
@marc-mabe marc-mabe merged commit ae7b81c into zendframework:master Dec 16, 2016
marc-mabe added a commit that referenced this pull request Dec 16, 2016
marc-mabe added a commit that referenced this pull request Dec 16, 2016
marc-mabe added a commit that referenced this pull request Dec 16, 2016
marc-mabe added a commit that referenced this pull request Dec 16, 2016
Conflicts:
	doc/book/storage/adapter.md
	src/Storage/Adapter/AbstractZendServer.php
	src/Storage/Capabilities.php
	test/Storage/Adapter/CommonAdapterTest.php
@marc-mabe marc-mabe added this to the 2.7.2 milestone Dec 16, 2016
@marc-mabe marc-mabe deleted the deprecate_expired_read branch February 11, 2017 11:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant