Julien Fastré a16244a3f5 Feature: [docgen] generate documents in an async queue
The documents are now generated in a queue, using symfony messenger. This queue should be configured:

```yaml
# app/config/messenger.yaml
framework:
    messenger:
        # reset services after consuming messages
        # reset_on_message: true

        failure_transport: failed

        transports:
            # https://symfony.com/doc/current/messenger.html#transport-configuration
            async: '%env(MESSENGER_TRANSPORT_DSN)%'
            priority:
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
            failed: 'doctrine://default?queue_name=failed'

        routing:
            # ... other messages
            'Chill\DocGeneratorBundle\Service\Messenger\RequestGenerationMessage': priority
```

`StoredObject`s now have additionnal properties:

* status (pending, failure, ready (by default) ), which explain if the document is generated;
* a generationTrialCounter, which is incremented on each generation trial, which prevent each generation more than 5 times;

The generator computation is moved from the `DocGenTemplateController` to a `Generator` (implementing `GeneratorInterface`. 

There are new methods to `Context` which allow to normalize/denormalize context data to/from a messenger's `Message`.
2023-02-28 15:25:47 +00:00
2021-11-23 14:05:45 +01:00
2022-01-12 22:06:47 +01:00
2022-03-02 16:41:53 +01:00
2021-04-20 17:20:57 +02:00
2022-05-05 07:13:53 +02:00
2021-11-23 14:05:45 +01:00
2022-04-30 01:34:23 +02:00
2021-05-04 14:49:36 +02:00

Chill framework

Documentation of the Chill software.

The online documentation can be found at http://docs.chill.social

See the docs directory for more.

Description
Miroir de chill-bundles
Readme AGPL-3.0 58 MiB
Languages
PHP 77.3%
Twig 10.4%
Vue 7.4%
JavaScript 3.1%
TypeScript 1%
Other 0.8%