Skip to content

Commit d16053f

Browse files
committed
Run this middleware last
1 parent cad04a9 commit d16053f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MockMiddleware.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace ApiClients\Middleware\Mock;
44

5+
use ApiClients\Foundation\Middleware\Annotation\Last;
56
use ApiClients\Foundation\Middleware\ErrorTrait;
67
use ApiClients\Foundation\Middleware\MiddlewareInterface;
78
use ApiClients\Foundation\Middleware\PostTrait;
@@ -30,6 +31,8 @@ public function __construct(MockInterface ...$mocks)
3031
* @param RequestInterface $request
3132
* @param array $options
3233
* @return CancellablePromiseInterface
34+
*
35+
* @Last()
3336
*/
3437
public function pre(
3538
RequestInterface $request,

0 commit comments

Comments
 (0)