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

Deprecating SAPI #669

Merged
merged 1 commit into from
Apr 25, 2022
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
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