src/Middleware/PipelineProcessor.php
<?php
/*
* Copyright (c) 2016 Refinery29, Inc.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Refinery29\Piston\Middleware;
class PipelineProcessor
{
/**
* @param Payload $subject
*
* @return Payload
*/
public function handlePayload(Payload $subject)
{
return $subject->getSubject()
->getPipeline()
->process($subject);
}
}