Skip to content

Commit

Permalink
Marks deprecated classes
Browse files Browse the repository at this point in the history
This patch marks as deprecated classes we plan to remove in version
3.0.0.
  • Loading branch information
weierophinney committed Jan 10, 2018
1 parent 877636d commit a5b6608
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Delegate/CallableDelegateDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
/**
* Decorate callable delegates as http-interop delegates in order to process
* incoming requests.
*
* @deprecated since 2.2.0; to be removed in 3.0.0. This class is an internal
* detail used to allow usage of Stratigility within double-pass middleware
* frameworks; starting in 3.0.0, Stratigility will support PSR-15 only.
*/
class CallableDelegateDecorator implements DelegateInterface
{
Expand Down
3 changes: 3 additions & 0 deletions src/Exception/InvalidMiddlewareException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

use InvalidArgumentException;

/**
* @deprecated since 2.2.0; to be removed in 3.0.0.
*/
class InvalidMiddlewareException extends InvalidArgumentException
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/InvalidRequestTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* Exception thrown when Dispatch::process() is called with a non-interop
* handler provided, and the request is not a server request type.
*
* @deprecated since 2.2.0; to be removed in 3.0.0. No longer used internally.
*/
class InvalidRequestTypeException extends RuntimeException
{
Expand Down
3 changes: 3 additions & 0 deletions src/Middleware/CallableInteropMiddlewareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Webimpress\HttpMiddlewareCompatibility\HandlerInterface as DelegateInterface;
use Webimpress\HttpMiddlewareCompatibility\MiddlewareInterface as ServerMiddlewareInterface;

/**
* @deprecated since 2.2.0; to be removed in 3.0.0. Use CallableMiddlewareDecorator instead.
*/
class CallableInteropMiddlewareWrapper implements ServerMiddlewareInterface
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Middleware/CallableMiddlewareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
/**
* Decorate legacy callable middleware to make it dispatchable as server
* middleware.
*
* @deprecated since 2.2.0; to be removed in 3.0.0. Use DoublePassMiddlewareDecorator instead.
*/
class CallableMiddlewareWrapper implements ServerMiddlewareInterface
{
Expand Down
3 changes: 3 additions & 0 deletions src/Middleware/CallableMiddlewareWrapperFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

use Psr\Http\Message\ResponseInterface;

/**
* @deprecated since 2.2.0; to be removed in 3.0.0.
*/
class CallableMiddlewareWrapperFactory
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/NoopFinalHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

/**
* @deprecated since 2.2.0; to be removed in 3.0.0.
*/
class NoopFinalHandler
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* Details the subpath on which the middleware is active, and the
* handler for the middleware itself.
*
* @internal
* @deprecated since 2.2.0, to be removed in 3.0.0.
* @property-read callable $handler Handler for this route
* @property-read string $path Path for this route
*/
Expand Down

0 comments on commit a5b6608

Please sign in to comment.