public function createService(ServiceLocatorInterface $serviceLocator)
    {
        /** @var \Doctrine\Common\Persistence\ObjectManager $entityManager */
        $entityManager = $serviceLocator->get('Doctrine\ORM\EntityManager');

        $queryMapper = new CommandMapper($entityManager);
        $queryService = new Command($queryMapper);

        return $queryService;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        /** @var \Doctrine\Common\Persistence\ObjectManager $entityManager */
        $entityManager = $serviceLocator->get('Doctrine\ORM\EntityManager');

        $queryMapper = new CommandMapper($entityManager);
        $queryService = new Command($queryMapper);

        return $queryService;
    }
{@inheritdoc}
@return \MamuzContact\Feature\CommandInterface