for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require_once __DIR__ . '/CreateFlightBillCommandHandler.php';
/**
* @author Laurent De Coninck <[email protected]>
*/
class CreateFlightBillTransactionalCommandHandler extends CreateFlightBillCommandHandler
{
* @inheritDoc
public function handle(CreateFlightBillCommand $command)
$this->db->begin();
try {
parent::handle($command);
$this->db->commit();
} catch (\Exception $e) {
$this->db->rollback($e->getTraceAsString());
throw $e;
}