cleverage/soap-process-bundle
CleverAge/SoapProcessBundle adds SOAP integration to the CleverAge ProcessBundle, helping Symfony applications configure and run SOAP-based process tasks. Part of CleverAge’s process tooling, MIT licensed, with usage docs included.
cleverage/process-bundle ^5.4.Soap call failed instead of the misleading Empty resultset for query (same level and log context). Remove the monolog.logger tag of RequestTransformer, which has no logger. Type MissingClientException::create(string $code). Document that a client, shared, keeps its state between two process executions in a long-running worker. Update documentation and tests.cleverage_soap_process, instead of clever_age_soap_process (no option could be configured there). Configuring a key under cleverage_soap_process is deprecated: the bundle has no configuration and the keys were ignored without notice (new internal Configuration, empty; notice when the container is compiled). They will be rejected in 4.0. Require symfony/deprecation-contracts, used directly. Update documentation, add tests.ProcessExceptionInterface of the process bundle instead of raw SPL exceptions (as cleverage/process-bundle#317): new Exception\UnexpectedValueException, Exception\InvalidArgumentException and Exception\RuntimeException, extending the SPL exceptions thrown before (same messages, the existing catch keep working). Add tests.^8.2 instead of >=8.2 (PHP 9 is no longer accepted before being tested), remove the authorization of the symfony/flex plugin, which is not required (the CI installs it globally), as cleverage/process-bundle#319.RequestTask, RequestTransformer, ClientRegistry and CleverAgeSoapProcessBundle are marked [@final](https://github.com/final) since 3.3, they will be final in 4.0: extending them triggers a deprecation with the Symfony DebugClassLoader. Client (extended by the applications) and MissingClientException stay open. CleverAgeSoapProcessExtension and RegisterClientsPass are marked [@internal](https://github.com/internal).CleverAgeSoapProcessExtension::findServices() loads the service definition files with a glob pattern instead of a Finder (same files, as cleverage/process-bundle#271), symfony/finder is no longer required. Add tests.code attribute of the cleverage.soap.client tag, or by the new #[AsSoapClient(code: '...')] attribute (autoconfiguration); it must be the one returned by getCode(). Duplicate or empty codes fail the container compilation. A client tagged without code is still registered eagerly, with ClientRegistry::addClient(), which is deprecated (the code will be required in 4.0). New optional ClientRegistry constructor argument (the locator); ClientRegistry is autowirable by its class name. Require symfony/service-contracts. Update documentation, add tests.symfony/polyfill-php83, symfony/polyfill-php84 and symfony/polyfill-php85 (cleverage/process-bundle#299), so the functions of PHP 8.3 to 8.5 can be used while supporting PHP 8.2. Configure Rector for PHP 8.2 with its polyfills set (it was configured for PHP 8.5, and could introduce PHP 8.3+ functions without polyfill). No code change: no Rector rule applies and no manual replacement keeps an identical behaviour. Document it in CONTRIBUTING.md.soap_request (task: soap_request, with cleverage/process-bundle 5.4 or later, referencing it by service being deprecated there). The task has its class name as service id; fetching it directly from the service container is deprecated (container.private), it will be private in 4.0. The former id cleverage_soap_process.task.request is a deprecated alias, removed in 4.0. Update documentation, add tests.RequestTransformer with its code, soap_request, for its lazy loading by cleverage/process-bundle 5.4 or later (cleverage/process-bundle#276). The transformer has its class name as service id; fetching it directly from the service container is deprecated (container.private), it will be private in 4.0. The former id cleverage_soap_process.transformer.request is a deprecated alias, removed in 4.0. Update documentation, add tests.composer.json (--prefer-lowest, PHP 8.2). Require psr/log ^2|^3: the loggers (of the tests, and TaskLogger of cleverage/process-bundle) use the typed LoggerInterface signatures of psr/log 2+, a fatal error with psr/log 1..gitattributes: the development files (.docker/, .github/, tests/, quality tools and PHPUnit configurations, Makefile) are no longer part of the archive installed by Composer (dist).psr/log, used directly by Client and RequestTask but only installed through cleverage/process-bundle.logger service instead of monolog.logger, so that it logs on the cleverage_process_task channel of its monolog.logger tag (it logged on the app channel, without the process context, and its logs were missing from the process execution logs of the UI). Add tests.ClientRegistry::addClient() gets an optional $serviceId argument. Update documentation, add tests.soap_call_options / soap_call_headers are not set (they were overwritten by null). Update documentation, add tests.soap_call_options / soap_call_headers for the call only (they leaked to the next calls of the client), add these options to the soap_request transformer. Update documentation, add tests.SoapFault of a failed call (it returned false), so a method returning false is no longer handled as failed, and the soap_request transformer fails on a SoapFault. Update documentation, add tests.SoapFault returned with the exceptions: false option makes the call fail (it was returned as a result). Update documentation, add tests.\UnexpectedValueException on a non-array input (a TypeError was triggered); Client: log the notice of the calls handled by a soapCall<Method>() override. Update documentation, add tests.cleverage_soap_processHow can I help you explore Laravel packages today?