diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a441e35c..e65c2117a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/Framework/Http/SapiDispatcher.php b/src/Framework/Http/SapiDispatcher.php index f4322d7e1..9fd65ff20 100644 --- a/src/Framework/Http/SapiDispatcher.php +++ b/src/Framework/Http/SapiDispatcher.php @@ -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 */ diff --git a/src/Http/src/Emitter/SapiEmitter.php b/src/Http/src/Emitter/SapiEmitter.php index 6beb070c0..2c86be947 100644 --- a/src/Http/src/Emitter/SapiEmitter.php +++ b/src/Http/src/Emitter/SapiEmitter.php @@ -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 { diff --git a/src/Http/src/EmitterInterface.php b/src/Http/src/EmitterInterface.php index c90ebb598..a0b1e4cb5 100644 --- a/src/Http/src/EmitterInterface.php +++ b/src/Http/src/EmitterInterface.php @@ -13,6 +13,9 @@ use Psr\Http\Message\ResponseInterface; +/** + * @deprecated since v2.13. Will be removed in v3.0 + */ interface EmitterInterface { /** diff --git a/src/Http/src/Exception/EmitterException.php b/src/Http/src/Exception/EmitterException.php index 221b38def..264f95410 100644 --- a/src/Http/src/Exception/EmitterException.php +++ b/src/Http/src/Exception/EmitterException.php @@ -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 { } diff --git a/src/Http/src/SapiRequestFactory.php b/src/Http/src/SapiRequestFactory.php index 163641d98..b11bda2c2 100644 --- a/src/Http/src/SapiRequestFactory.php +++ b/src/Http/src/SapiRequestFactory.php @@ -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 {