Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Added MiddlewarePipeInterface as abstraction layer for MiddlewarePipe #146

Merged
merged 6 commits into from
Jan 24, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 1 addition & 1 deletion src/MiddlewarePipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @see https://github.com/sencha/connect
*/
final class MiddlewarePipe implements MiddlewareInterface, RequestHandlerInterface
final class MiddlewarePipe implements MiddlewarePipeInterface
{
/**
* @var SplQueue
Expand Down
17 changes: 17 additions & 0 deletions src/MiddlewarePipeInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* @see https://github.com/zendframework/zend-stratigility for the canonical source repository
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-stratigility/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace Zend\Stratigility;

use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

interface MiddlewarePipeInterface extends MiddlewareInterface, RequestHandlerInterface
{
public function pipe(MiddlewareInterface $middleware) : void;
}