for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bdf\QueueBundle\Consumption\Receiver;
use Bdf\Queue\Consumer\Receiver\Builder\ReceiverFactory;
use Bdf\Queue\Consumer\ReceiverInterface;
use Bdf\QueueBundle\Consumption\ReceiverFactoryInterface;
use Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter;
class ResetServicesFactory implements ReceiverFactoryInterface
{
public function getReceiverNames(): array
return ['reset'];
}
public function create(ReceiverFactory $factory, ...$arguments): ReceiverInterface
if (!isset($arguments[0]) || !($arguments[0] instanceof ServicesResetter)) {
throw new \LogicException(sprintf('First argument of %s should be an instance of %s.', ResetServices::class, ServicesResetter::class));
return new ResetServices($arguments[0]);