Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F392069
Middleware.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
584 B
Referenced Files
None
Subscribers
None
Middleware.php
View Options
<?php
namespace
PhpMimeMailParser
;
/**
* Wraps a callable as a Middleware
*/
class
Middleware
implements
Contracts\Middleware
{
protected
$parser
;
/**
* Create a middleware using a callable $fn
*
* @param callable $fn
*/
public
function
__construct
(
callable
$fn
)
{
$this
->
parser
=
$fn
;
}
/**
* Process a mime part, optionally delegating parsing to the $next MiddlewareStack
*/
public
function
parse
(
MimePart
$part
,
MiddlewareStack
$next
)
{
return
call_user_func
(
$this
->
parser
,
$part
,
$next
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Apr 20, 8:09 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
49003
Default Alt Text
Middleware.php (584 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment