* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\CommandBus; use League\Tactician\CommandBus; /** * Class TacticianCommandBusAdapter is Tactician's CommandsBus implementation for PrestaShop's contract. */ final class TacticianCommandBusAdapter implements CommandBusInterface { /** * @var CommandBus */ private $bus; /** * @param CommandBus $bus */ public function __construct(CommandBus $bus) { $this->bus = $bus; } /** * {@inheritdoc} */ public function handle($command) { return $this->bus->handle($command); } }