for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorFile package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorFile\SimpleBusBridge\Application;
use Ajgl\SimpleBus\Message\Bus\CatchReturnMessageBus;
use BenGorFile\File\Infrastructure\Application\FileQueryBus;
/**
* Simple bus implementation of file query bus.
* @author Beñat Espiña <[email protected]>
class SimpleBusFileQueryBus implements FileQueryBus
{
* The message bus.
* @var CatchReturnMessageBus
private $messageBus;
* Constructor.
* @param CatchReturnMessageBus $aMessageBus The message bus
public function __construct(CatchReturnMessageBus $aMessageBus)
$this->messageBus = $aMessageBus;
}
* {@inheritdoc}
public function handle($query, &$result)
$this->messageBus->handle($query, $result);