for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ConferenceTools\Tickets\Cli\Command;
use Carnage\Cqrs\Command\CommandBusInterface;
use Carnage\Cqrs\Service\EventCatcher;
use ConferenceTools\Tickets\Domain\Service\Configuration;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class CancelTicketFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
$serviceLocator = $serviceLocator->getServiceLocator();
return CancelTicket::build(
$serviceLocator->get(CommandBusInterface::class)
);
}