Skip to content

Commit

Permalink
Add SAPI deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Apr 21, 2022
1 parent 7a080f2 commit 289b3e0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# CHANGELOG

## v2.13.0 - Unreleased
- **Medium Impact Changes**
- Dispatcher `Spiral\Http\SapiDispatcher` is deprecated. Will be moved to `spiral/sapi-bridge` and removed in v3.0
- Classes `Spiral\Http\Emitter\SapiEmitter`, `Spiral\Http\Exception\EmitterException`, `Spiral\Http\EmitterInterface`,
`Spiral\Http\SapiRequestFactory` is deprecated. Will be removed in version v3.0.
After the release of v3.0, must use the package `spiral/sapi-bridge` for SAPI functionality.
- **Other Features**
- [spiral/http] Added parameter `chunkSize` in the `http` configuration file.

Expand Down
3 changes: 3 additions & 0 deletions src/Framework/Http/SapiDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Spiral\Snapshots\SnapshotInterface;
use Spiral\Snapshots\SnapshotterInterface;

/**
* @deprecated since v2.13. Will be moved to spiral/sapi-bridge and removed in v3.0
*/
final class SapiDispatcher implements DispatcherInterface
{
/** @var FinalizerInterface */
Expand Down
2 changes: 2 additions & 0 deletions src/Http/src/Emitter/SapiEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

/**
* Source code has been extracted from Zend/Diactoros.
*
* @deprecated since v2.13. Will be moved to spiral/sapi-bridge and removed in v3.0
*/
final class SapiEmitter implements EmitterInterface
{
Expand Down
3 changes: 3 additions & 0 deletions src/Http/src/EmitterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

use Psr\Http\Message\ResponseInterface;

/**
* @deprecated since v2.13. Will be removed in v3.0
*/
interface EmitterInterface
{
/**
Expand Down
4 changes: 3 additions & 1 deletion src/Http/src/Exception/EmitterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

namespace Spiral\Http\Exception;

// todo: license to zend
/**
* @deprecated since v2.13. Will be moved to spiral/sapi-bridge and removed in v3.0
*/
class EmitterException extends \RuntimeException
{
}
2 changes: 2 additions & 0 deletions src/Http/src/SapiRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @codeCoverageIgnore
*
* @deprecated since v2.13. Will be removed in v3.0
*/
final class SapiRequestFactory
{
Expand Down

0 comments on commit 289b3e0

Please sign in to comment.