Skip to content

Commit a371e70

Browse files
authored
Create functions.php
1 parent d48ff26 commit a371e70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/functions.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Bermuda\Pipeline;
4+
5+
/**
6+
* @param MiddlewareInterface[] $middleware
7+
* @param RequestHandlerInterface|null $fallbackHandler
8+
* @return Pipeline
9+
*/
10+
function pipe(iterable $middleware = [], ?RequestHandlerInterface $fallbackHandler = null): Pipeline
11+
{
12+
return Pipeline::makeOf($middleware, $fallbackHandler);
13+
}

0 commit comments

Comments
 (0)