Hari the problem here is that you have two return []
statements. That's not correct.
For your case, you need something like:
return [
(new Blomstra\Redis\Extend\Redis([
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'database' => 1,
]))
->useDatabaseWith('queue', 2)
->useDatabaseWith('session', 3)
->disable('cache'),
(new \FoF\Sitemap\Extend\RemoveResource(\FoF\Sitemap\Resources\User::class)),
];