$container->
register('shopware.increment.gateway.array', ArrayIncrementer::
class) ->
addArgument(''
);
$container->
register('shopware.increment.gateway.mysql', MySQLIncrementer::
class) ->
addArgument(''
) ->
addArgument($this->
getContainer()->
get(Connection::
class));
$entityCompilerPass =
new IncrementerGatewayCompilerPass();
$entityCompilerPass->
process($container);
// user_activity pool is registered
static::
assertNotNull($container->
hasDefinition('shopware.increment.user_activity.gateway.mysql'
));
$definition =
$container->
getDefinition('shopware.increment.user_activity.gateway.mysql'
);
static::
assertEquals(MySQLIncrementer::
class,
$definition->
getClass());
static::
assertTrue($definition->
hasTag('shopware.increment.gateway'
));
// message_queue pool is registered
static::
assertNotNull($container->
hasDefinition('shopware.increment.message_queue.redis_adapter'
));
static::
assertNotNull($container->
hasDefinition('shopware.increment.message_queue.gateway.redis'
));
$definition =
$container->
getDefinition('shopware.increment.message_queue.gateway.redis'
);
static::
assertEquals(RedisIncrementer::
class,
$definition->
getClass());
static::
assertTrue($definition->
hasTag('shopware.increment.gateway'
));