Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation notices for removals in v7 major release #407

Merged
merged 1 commit into from
Dec 6, 2019
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
2 changes: 2 additions & 0 deletions src/API/Helpers/State/DummyStateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/**
* Dummy implementation of the StateHandler
*
* @deprecated 5.7.0, no replacement provided.
*
* @author Auth0
*/
class DummyStateHandler implements StateHandler
Expand Down
2 changes: 2 additions & 0 deletions src/API/Helpers/State/SessionStateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* Session based implementation of StateHandler.
*
* @deprecated 5.7.0, replaced by Auth0\SDK\Helpers\TransientStoreHandler
*
* @author Auth0
*/
class SessionStateHandler implements StateHandler
Expand Down
2 changes: 2 additions & 0 deletions src/API/Helpers/State/StateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/**
* This interface must be implemented by state handlers.
*
* @deprecated 5.7.0, replaced by Auth0\SDK\Helpers\TransientStoreHandler
*
* @author Auth0
*/
interface StateHandler
Expand Down
3 changes: 3 additions & 0 deletions src/Helpers/Cache/CacheHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Auth0\SDK\Helpers\Cache;

/**
* @deprecated 5.7.0, switching to Psr\SimpleCache\CacheInterface in 7.0.0
*/
interface CacheHandler
{

Expand Down
3 changes: 3 additions & 0 deletions src/Helpers/Cache/FileSystemCacheHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Auth0\SDK\Helpers\Cache;

/**
* @deprecated 5.7.0, use a Psr\SimpleCache\CacheInterface in 7.0.0.
*/
class FileSystemCacheHandler implements CacheHandler
{

Expand Down
2 changes: 2 additions & 0 deletions src/JWTVerifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Class JWTVerifier.
* Used to validate JWTs issued by Auth0.
*
* @deprecated 5.7.0, replacement available in upcoming 7.0.0: Auth0\SDK\Helpers\Tokens\IdTokenVerifier
*
* @package Auth0\SDK
*/
class JWTVerifier
Expand Down
2 changes: 2 additions & 0 deletions src/Store/EmptyStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* This class is a mockup store, that discards the values, its a way of saying no store.
*
* @author Auth0
*
* @deprecated 5.7.0, no replacement provided.
*/
class EmptyStore implements StoreInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Store/SessionStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SessionStore implements StoreInterface
* SessionStore constructor.
*
* @param string $base_name Session base name.
* @param integer $cookie_expires Session expiration in seconds; default is 1 week.
* @param integer $cookie_expires Session expiration in seconds; default is 1 week - @deprecated 5.7.0
*/
public function __construct($base_name = self::BASE_NAME, $cookie_expires = self::COOKIE_EXPIRES)
{
Expand Down