diff --git a/config/services/task.yaml b/config/services/task.yaml index 7650d8e..f6f1983 100644 --- a/config/services/task.yaml +++ b/config/services/task.yaml @@ -9,3 +9,4 @@ services: - { name: monolog.logger, channel: cleverage_process_task } CleverAge\SoapProcessBundle\Task\RequestTask: alias: cleverage_soap_process.task.request + public: true diff --git a/src/CleverAgeSoapProcessBundle.php b/src/CleverAgeSoapProcessBundle.php index 84ed891..7a61aa5 100644 --- a/src/CleverAgeSoapProcessBundle.php +++ b/src/CleverAgeSoapProcessBundle.php @@ -14,7 +14,6 @@ namespace CleverAge\SoapProcessBundle; use CleverAge\ProcessBundle\DependencyInjection\Compiler\RegistryCompilerPass; -use CleverAge\SoapProcessBundle\Registry\ClientRegistry; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -27,7 +26,7 @@ public function build(ContainerBuilder $container): void { $container->addCompilerPass( new RegistryCompilerPass( - ClientRegistry::class, + 'cleverage_soap_process.registry.client', 'cleverage.soap.client', 'addClient' ) diff --git a/src/Client/Client.php b/src/Client/Client.php index 1c81465..edabfe1 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -46,8 +46,12 @@ class Client implements ClientInterface /** * Client constructor. */ - public function __construct(private readonly LoggerInterface $logger, private readonly string $code, private ?string $wsdl, private array $options) - { + public function __construct( + private readonly LoggerInterface $logger, + private readonly string $code, + private ?string $wsdl, + private array $options = [], + ) { } public function getLogger(): LoggerInterface