Skip to content

The only tool you need to know what is happening and how to fix it.

feat: automatic handler span tracing for symphony, using end time for tasks

dduxdfa9fbd744c7
diff --git a/backend/app/controllers/otelcontrollers/trace_converter.go b/backend/app/controllers/otelcontrollers/trace_converter.go
index 5f6b6838..a3a2a6b3 100644
--- a/backend/app/controllers/otelcontrollers/trace_converter.go
+++ b/backend/app/controllers/otelcontrollers/trace_converter.go
@@ -66,18 +66,27 @@ func convertTraces(projectId uuid.UUID, req *coltracepb.ExportTraceServiceReques
traceId, projectId, span, spanAttrs, allAttrs,
startTime, duration, serverName, appVersion,
))
- } else {
+ } else if span.Kind == tracepb.Span_SPAN_KIND_CONSUMER {
tasks = append(tasks, buildTask(
traceId, projectId, span, allAttrs,
- startTime, duration, serverName, appVersion,
+ startTime, endTime, duration, serverName, appVersion,
))
+ } else {
+ continue
}
} else {
+ spanName := span.Name
+ if dbQuery := getStringAttribute(spanAttrs, "db.query.text"); dbQuery != "" {
+ spanName = dbQuery
+ } else if dbStatement := getStringAttribute(spanAttrs, "db.statement"); dbStatement != "" {
+ spanName = dbStatement
+ }
+
spans = append(spans, models.Span{
Id: spanId,
TraceId: traceId,
ProjectId: projectId,
- Name: span.Name,
+ Name: spanName,
StartTime: startTime,
Duration: duration,
RecordedAt: startTime,
@@ -189,7 +198,7 @@ func buildTask(
id, projectId uuid.UUID,
span *tracepb.Span,
allAttrs map[string]string,
- startTime time.Time,
+ startTime, endTime time.Time,
duration time.Duration,
serverName, appVersion string,
) models.Task {
@@ -198,7 +207,7 @@ func buildTask(
ProjectId: projectId,
TaskName: span.Name,
Duration: duration,
- RecordedAt: startTime,
+ RecordedAt: endTime,
Attributes: allAttrs,
AppVersion: appVersion,
ServerName: serverName,
diff --git a/docs/pages/client/symfony/_meta.json b/docs/pages/client/symfony/_meta.json
index 07583678..91ee60a7 100644
--- a/docs/pages/client/symfony/_meta.json
+++ b/docs/pages/client/symfony/_meta.json
@@ -2,5 +2,6 @@
"index": "Quick Start",
"exceptions": "Exceptions",
"spans": "Spans",
+ "tasks": "Tasks",
"metrics": "Metrics"
}
diff --git a/docs/pages/client/symfony/tasks.mdx b/docs/pages/client/symfony/tasks.mdx
new file mode 100644
index 00000000..8feea3fe
--- /dev/null
+++ b/docs/pages/client/symfony/tasks.mdx
@@ -0,0 +1,313 @@
+# Tasks
+
+OpenTelemetry PHP does not have auto-instrumentation for Symfony Messenger. To trace background tasks consumed by your workers, you need to instrument them manually. There are two approaches: creating spans directly in each handler, or using a Messenger middleware that handles it automatically.
+
+## Manual Setup
+
+The simplest approach is to create a root span directly inside each message handler.
+
+### Basic Handler
+
+Create a tracer, build a root span with `setParent(false)` and `KIND_CONSUMER`, activate it, and always end the span in a `finally` block:
+
+```php
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+
+#[AsMessageHandler]
+class EmailSendHandler
+{
+ public function __invoke(EmailSendMessage $message): void
+ {
+ $tracer = Globals::tracerProvider()->getTracer('app');
+ $span = $tracer->spanBuilder('email.send')
+ ->setParent(false)
+ ->setSpanKind(SpanKind::KIND_CONSUMER)
+ ->startSpan();
+ $scope = $span->activate();
+
+ try {
+ $span->setAttribute('email.to', $message->to);
+ $span->setAttribute('email.subject', $message->subject);
+
+ $this->mailer->send($message);
+ } catch (\Throwable $e) {
+ $span->recordException($e);
+ $span->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ throw $e;
+ } finally {
+ $scope->detach();
+ $span->end();
+ }
+ }
+}
+```
+
+Key points:
+- **`setParent(false)`** makes this a new trace root, not a child of the HTTP request that dispatched the message
+- **`activate()`** sets the span as the current active span so child spans (manual or auto-instrumented) nest correctly under it
+- **`try/catch/finally`** ensures errors are recorded and the span is always ended and scope detached
+
+### Handler with Child Spans
+
+For handlers with distinct sub-operations, create child spans using the tracer. They automatically nest under the activated root span:
+
+```php
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+
+#[AsMessageHandler]
+class PaymentProcessorHandler
+{
+ public function __invoke(PaymentProcessorMessage $message): void
+ {
+ $tracer = Globals::tracerProvider()->getTracer('app');
+ $span = $tracer->spanBuilder('payment.processor')
+ ->setParent(false)
+ ->setSpanKind(SpanKind::KIND_CONSUMER)
+ ->startSpan();
+ $scope = $span->activate();
+
+ try {
+ // Child span for validation
+ $validateSpan = $tracer->spanBuilder('validate.payment')
+ ->setSpanKind(SpanKind::KIND_INTERNAL)
+ ->startSpan();
+ $validateSpan->setAttribute('payment.amount', $message->amount);
+ $validateSpan->setAttribute('payment.currency', $message->currency);
+ $this->validate($message);
+ $validateSpan->end();
+
+ // Child span for gateway call
+ $chargeSpan = $tracer->spanBuilder('charge.gateway')
+ ->setSpanKind(SpanKind::KIND_CLIENT)
+ ->startSpan();
+ try {
+ $this->chargeGateway($message);
+ } catch (\Throwable $e) {
+ $chargeSpan->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ $chargeSpan->recordException($e);
+ throw $e;
+ } finally {
+ $chargeSpan->end();
+ }
+ } catch (\Throwable $e) {
+ $span->recordException($e);
+ $span->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ throw $e;
+ } finally {
+ $scope->detach();
+ $span->end();
+ }
+ }
+}
+```
+
+import { Callout } from 'nextra/components'
+
+<Callout type="warning">
+If you forget to call `activate()` on the root span, child spans will not nest under it — they will be created as separate traces instead.
+</Callout>
+
+## Automatic Setup with Middleware
+
+For a cleaner approach, use a Symfony Messenger middleware that wraps every consumed message in a root span automatically. This eliminates the boilerplate from each handler.
+
+### Step 1: Create the Middleware
+
+```php filename="src/Messenger/TracingMiddleware.php"
+<?php
+
+namespace App\Messenger;
+
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+use Symfony\Component\Messenger\Envelope;
+use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
+use Symfony\Component\Messenger\Middleware\StackInterface;
+use Symfony\Component\Messenger\Stamp\ReceivedStamp;
+
+class TracingMiddleware implements MiddlewareInterface
+{
+ public function handle(Envelope $envelope, StackInterface $stack): Envelope
+ {
+ // Only trace on the consumer side
+ if (!$envelope->last(ReceivedStamp::class)) {
+ return $stack->next()->handle($envelope, $stack);
+ }
+
+ $message = $envelope->getMessage();
+ $spanName = $this->resolveSpanName($message);
+
+ $tracer = Globals::tracerProvider()->getTracer('app');
+ $span = $tracer->spanBuilder($spanName)
+ ->setParent(false)
+ ->setSpanKind(SpanKind::KIND_CONSUMER)
+ ->startSpan();
+ $scope = $span->activate();
+
+ try {
+ $envelope = $stack->next()->handle($envelope, $stack);
+ } catch (\Throwable $e) {
+ $span->recordException($e);
+ $span->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ throw $e;
+ } finally {
+ $span->end();
+ $scope->detach();
+ }
+
+ return $envelope;
+ }
+
+ private function resolveSpanName(object $message): string
+ {
+ if ($message instanceof TracedMessage) {
+ return $message->getSpanName();
+ }
+
+ // Strip "Message" suffix, convert PascalCase -> dot.separated
+ $class = (new \ReflectionClass($message))->getShortName();
+ $class = preg_replace('/Message$/', '', $class);
+ $name = preg_replace('/([a-z])([A-Z])/', '$1.$2', $class);
+ return strtolower($name);
+ }
+}
+```
+
+The middleware:
+- **Only traces on the consumer side** — checks for `ReceivedStamp` so dispatching is not affected
+- **Creates a detached root span** — `setParent(false)` ensures the task span is a new trace, not a child of the HTTP request that dispatched it
+- **Activates scope** — so child spans (manual or auto-instrumented) nest correctly under the root
+- **Handles errors** — records the exception and sets error status, then re-throws so Messenger's retry/failure handling works normally
+
+### Step 2: Create the TracedMessage Interface
+
+For custom span names, create an optional interface that message classes can implement:
+
+```php filename="src/Messenger/TracedMessage.php"
+<?php
+
+namespace App\Messenger;
+
+interface TracedMessage
+{
+ public function getSpanName(): string;
+}
+```
+
+```php filename="src/Message/OrderFulfillmentMessage.php"
+use App\Messenger\TracedMessage;
+
+class OrderFulfillmentMessage implements TracedMessage
+{
+ public function __construct(
+ public readonly string $orderId,
+ ) {}
+
+ public function getSpanName(): string
+ {
+ return 'orders.fulfill';
+ }
+}
+```
+
+### Step 3: Register the Middleware
+
+Add the middleware to your bus configuration:
+
+```yaml filename="config/packages/messenger.yaml"
+framework:
+ messenger:
+ buses:
+ messenger.bus.default:
+ middleware:
+ - 'App\Messenger\TracingMiddleware'
+```
+
+### Span Name Resolution
+
+By default, the middleware derives the span name from the message class name — it strips the `Message` suffix and converts PascalCase to dot-separated lowercase:
+
+| Message Class | Span Name |
+|---|---|
+| `EmailSendMessage` | `email.send` |
+| `UserDataSyncMessage` | `user.data.sync` |
+| `DataProcessorMessage` | `data.processor` |
+| `PaymentProcessorMessage` | `payment.processor` |
+
+### Accessing the Root Span in Handlers
+
+Since the middleware activates the span, handlers can access it via `Span::getCurrent()` to add attributes:
+
+```php
+use OpenTelemetry\API\Trace\Span;
+
+#[AsMessageHandler]
+class EmailSendHandler
+{
+ public function __invoke(EmailSendMessage $message): void
+ {
+ $span = Span::getCurrent();
+
+ $span->setAttribute('email.to', $message->to);
+ $span->setAttribute('email.subject', $message->subject);
+
+ $this->mailer->send($message);
+ }
+}
+```
+
+### Adding Child Spans
+
+For handlers with distinct sub-operations, create child spans using the tracer. They automatically nest under the middleware's root span:
+
+```php
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\Span;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+
+#[AsMessageHandler]
+class PaymentProcessorHandler
+{
+ public function __invoke(PaymentProcessorMessage $message): void
+ {
+ $tracer = Globals::tracerProvider()->getTracer('app');
+
+ // Child span for validation
+ $validateSpan = $tracer->spanBuilder('validate.payment')
+ ->setSpanKind(SpanKind::KIND_INTERNAL)
+ ->startSpan();
+ $validateSpan->setAttribute('payment.amount', $message->amount);
+ $validateSpan->setAttribute('payment.currency', $message->currency);
+ $this->validate($message);
+ $validateSpan->end();
+
+ // Child span for gateway call
+ $chargeSpan = $tracer->spanBuilder('charge.gateway')
+ ->setSpanKind(SpanKind::KIND_CLIENT)
+ ->startSpan();
+ try {
+ $this->chargeGateway($message);
+ } catch (\Throwable $e) {
+ $chargeSpan->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ $chargeSpan->recordException($e);
+
+ // Propagate error to the root span
+ $rootSpan = Span::getCurrent();
+ $rootSpan->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ $rootSpan->recordException($e);
+ } finally {
+ $chargeSpan->end();
+ }
+ }
+}
+```
+
+## Auto-Instrumentation
+
+If you have `opentelemetry-auto-pdo` installed (see [Quick Start](/client/symfony)), database operations in your handlers automatically create child spans under the root span. No additional code is needed — any PDO calls made during message handling will appear as nested spans in Traceway.
diff --git a/frontend/src/lib/components/spans/span-row.svelte b/frontend/src/lib/components/spans/span-row.svelte
index 37fb2dfc..21e75a02 100644
--- a/frontend/src/lib/components/spans/span-row.svelte
+++ b/frontend/src/lib/components/spans/span-row.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Span } from '$lib/types/spans';
import { cn } from '$lib/utils';
- import { formatDuration } from '$lib/utils/formatters';
+ import { formatDuration, preciseTimeMs } from '$lib/utils/formatters';
import * as Popover from '$lib/components/ui/popover';
import Copy from 'lucide-svelte/icons/copy';
import Check from 'lucide-svelte/icons/check';
@@ -33,7 +33,7 @@
spanCellHandleMouseLeave
}: Props = $props();
- const spanStartMs = $derived(new Date(span.startTime).getTime() - traceStart);
+ const spanStartMs = $derived(preciseTimeMs(span.startTime) - traceStart);
const spanDurationMs = $derived(span.duration / 1_000_000);
const traceDurationMs = $derived(traceDuration / 1_000_000);
diff --git a/frontend/src/lib/components/spans/span-waterfall.svelte b/frontend/src/lib/components/spans/span-waterfall.svelte
index 32791fd5..4f283690 100644
--- a/frontend/src/lib/components/spans/span-waterfall.svelte
+++ b/frontend/src/lib/components/spans/span-waterfall.svelte
@@ -2,6 +2,7 @@
import type { Span } from '$lib/types/spans';
import ScrollArea from '../ui/scroll-area/scroll-area.svelte';
import SpanRow from './span-row.svelte';
+ import { preciseTimeMs } from '$lib/utils/formatters';
type Props = {
spans: Span[];
@@ -13,11 +14,11 @@
const traceStart = $derived(
spans.length === 0
- ? new Date(traceStartTime).getTime()
+ ? preciseTimeMs(traceStartTime)
: spans.reduce((earliest, s) => {
- const sTime = new Date(s.startTime).getTime();
+ const sTime = preciseTimeMs(s.startTime);
return sTime < earliest ? sTime : earliest;
- }, new Date(spans[0].startTime).getTime())
+ }, preciseTimeMs(spans[0].startTime))
);
const durationMs = $derived(traceDuration / 1_000_000);
diff --git a/frontend/src/lib/utils/formatters.ts b/frontend/src/lib/utils/formatters.ts
index a5e752d4..b87ab9f6 100644
--- a/frontend/src/lib/utils/formatters.ts
+++ b/frontend/src/lib/utils/formatters.ts
@@ -1,6 +1,19 @@
import { DateTime } from 'luxon';
import { getTimezone } from '$lib/state/timezone.svelte';
+export function preciseTimeMs(isoString: string): number {
+ const match = isoString.match(
+ /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/
+ );
+ if (!match) return new Date(isoString).getTime();
+
+ const [, year, month, day, hour, minute, second, frac] = match;
+ const baseMs = Date.UTC(+year, +month - 1, +day, +hour, +minute, +second);
+ if (!frac) return baseMs;
+
+ return baseMs + parseFloat('0.' + frac) * 1000;
+}
+
export function formatDuration(nanoseconds: number): string {
const ms = nanoseconds / 1_000_000;
if (ms < 1) {
diff --git a/testing/devtesting-symfony/README.md b/testing/devtesting-symfony/README.md
index a40cf2a7..0c9e8d51 100644
--- a/testing/devtesting-symfony/README.md
+++ b/testing/devtesting-symfony/README.md
@@ -51,10 +51,18 @@ OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer YOUR_PROJECT_TOKEN
### 6. Run
+Start the web server:
+
```bash
php -S localhost:8080 public/index.php
```
+In a **separate terminal**, start the Messenger worker to process background jobs:
+
+```bash
+php bin/console messenger:consume async -vv
+```
+
## Endpoints
### Test Controller
@@ -76,6 +84,17 @@ php -S localhost:8080 public/index.php
| GET | `/test-cerror-nested` | Error from nested function calls |
| POST | `/test-recording/{param}` | JSON body parsing, throws if name != "good" |
+### Task Controller (Symfony Messenger)
+
+| Method | Path | Message | Handler Task Name |
+|--------|------|---------|-------------------|
+| GET | `/test-task` | `DataProcessorMessage` | `traceway data processor` — child span, 10 events, exception (mirrors Go reference) |
+| GET | `/test-task-simple` | `EmailSendMessage` | `email.send` — minimal task with attributes |
+| GET | `/test-task-db` | `UserDataSyncMessage` | `user.data.sync` — task with auto-instrumented PDO query |
+| GET | `/test-task-error` | `PaymentProcessorMessage` | `payment.processor` — child spans with exception + STATUS_ERROR |
+
+These endpoints dispatch real Symfony Messenger jobs to the `async` transport (Doctrine/SQLite). A separate `messenger:consume` worker picks them up and processes them in the background. Each handler creates a detached root span (`setParent(false)`) with `KIND_CONSUMER`, so they appear on the **Tasks** page in Traceway (not Endpoints).
+
### Users Controller (CRUD)
| Method | Path | Description |
@@ -97,6 +116,12 @@ curl http://localhost:8080/test-exception
curl http://localhost:8080/test-spans
curl http://localhost:8080/test-metrics
+# Dispatch background jobs (requires messenger:consume worker running)
+curl http://localhost:8080/test-task
+curl http://localhost:8080/test-task-simple
+curl http://localhost:8080/test-task-db
+curl http://localhost:8080/test-task-error
+
# User CRUD
curl -X POST http://localhost:8080/users \
-H 'Content-Type: application/json' \
diff --git a/testing/devtesting-symfony/bin/console b/testing/devtesting-symfony/bin/console
new file mode 100755
index 00000000..33c83383
--- /dev/null
+++ b/testing/devtesting-symfony/bin/console
@@ -0,0 +1,21 @@
+#!/usr/bin/env php
+<?php
+
+use App\Kernel;
+use Symfony\Bundle\FrameworkBundle\Console\Application;
+use Symfony\Component\Console\Input\ArgvInput;
+use Symfony\Component\Dotenv\Dotenv;
+
+require dirname(__DIR__) . '/vendor/autoload.php';
+
+(new Dotenv())->loadEnv(dirname(__DIR__) . '/.env');
+\OpenTelemetry\SDK\SdkAutoloader::autoload();
+
+$input = new ArgvInput();
+$kernel = new Kernel(
+ $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev'),
+ (bool) ($_SERVER['APP_DEBUG'] ?? true)
+);
+
+$application = new Application($kernel);
+$application->run($input);
diff --git a/testing/devtesting-symfony/composer.json b/testing/devtesting-symfony/composer.json
index d8673cc3..8e7b394d 100644
--- a/testing/devtesting-symfony/composer.json
+++ b/testing/devtesting-symfony/composer.json
@@ -14,7 +14,10 @@
"open-telemetry/opentelemetry-auto-pdo": "^0.0",
"php-http/guzzle7-adapter": "^1.0",
"google/protobuf": "^4.0",
- "symfony/string": "^7.0"
+ "symfony/string": "^7.0",
+ "symfony/messenger": "^8.0",
+ "symfony/doctrine-messenger": "^8.0",
+ "doctrine/doctrine-bundle": "^3.2"
},
"autoload": {
"psr-4": {
diff --git a/testing/devtesting-symfony/composer.lock b/testing/devtesting-symfony/composer.lock
index 84100075..7ba8f834 100644
--- a/testing/devtesting-symfony/composer.lock
+++ b/testing/devtesting-symfony/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "eec3b2e2a8d4024e867d667f8997a264",
+ "content-hash": "8ccf8a35421ce68532c6bb4d82f772e5",
"packages": [
{
"name": "brick/math",
@@ -143,6 +143,514 @@
],
"time": "2025-08-20T19:15:30+00:00"
},
+ {
+ "name": "doctrine/dbal",
+ "version": "4.4.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/dbal.git",
+ "reference": "476f7f0fa6ea4aa5364926db7fabdf6049075722"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/dbal/zipball/476f7f0fa6ea4aa5364926db7fabdf6049075722",
+ "reference": "476f7f0fa6ea4aa5364926db7fabdf6049075722",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/deprecations": "^1.1.5",
+ "php": "^8.2",
+ "psr/cache": "^1|^2|^3",
+ "psr/log": "^1|^2|^3"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "14.0.0",
+ "fig/log-test": "^1",
+ "jetbrains/phpstorm-stubs": "2023.2",
+ "phpstan/phpstan": "2.1.30",
+ "phpstan/phpstan-phpunit": "2.0.7",
+ "phpstan/phpstan-strict-rules": "^2",
+ "phpunit/phpunit": "11.5.50",
+ "slevomat/coding-standard": "8.27.1",
+ "squizlabs/php_codesniffer": "4.0.1",
+ "symfony/cache": "^6.3.8|^7.0|^8.0",
+ "symfony/console": "^5.4|^6.3|^7.0|^8.0"
+ },
+ "suggest": {
+ "symfony/console": "For helpful console commands such as SQL execution and import of files."
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\DBAL\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Guilherme Blanco",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Roman Borschel",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Benjamin Eberlei",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Jonathan Wage",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.",
+ "homepage": "https://www.doctrine-project.org/projects/dbal.html",
+ "keywords": [
+ "abstraction",
+ "database",
+ "db2",
+ "dbal",
+ "mariadb",
+ "mssql",
+ "mysql",
+ "oci8",
+ "oracle",
+ "pdo",
+ "pgsql",
+ "postgresql",
+ "queryobject",
+ "sasql",
+ "sql",
+ "sqlite",
+ "sqlserver",
+ "sqlsrv"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/dbal/issues",
+ "source": "https://github.com/doctrine/dbal/tree/4.4.2"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2026-02-26T12:12:19+00:00"
+ },
+ {
+ "name": "doctrine/deprecations",
+ "version": "1.1.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/deprecations.git",
+ "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
+ "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "conflict": {
+ "phpunit/phpunit": "<=7.5 || >=14"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^9 || ^12 || ^14",
+ "phpstan/phpstan": "1.4.10 || 2.1.30",
+ "phpstan/phpstan-phpunit": "^1.0 || ^2",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.4 || ^13.0",
+ "psr/log": "^1 || ^2 || ^3"
+ },
+ "suggest": {
+ "psr/log": "Allows logging deprecations via PSR-3 logger implementation"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Deprecations\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.",
+ "homepage": "https://www.doctrine-project.org/",
+ "support": {
+ "issues": "https://github.com/doctrine/deprecations/issues",
+ "source": "https://github.com/doctrine/deprecations/tree/1.1.6"
+ },
+ "time": "2026-02-07T07:09:04+00:00"
+ },
+ {
+ "name": "doctrine/doctrine-bundle",
+ "version": "3.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/DoctrineBundle.git",
+ "reference": "af84173db6978c3d2688ea3bcf3a91720b0704ce"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/af84173db6978c3d2688ea3bcf3a91720b0704ce",
+ "reference": "af84173db6978c3d2688ea3bcf3a91720b0704ce",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/dbal": "^4.0",
+ "doctrine/deprecations": "^1.0",
+ "doctrine/persistence": "^4",
+ "doctrine/sql-formatter": "^1.0.1",
+ "php": "^8.4",
+ "symfony/cache": "^6.4 || ^7.0 || ^8.0",
+ "symfony/config": "^6.4 || ^7.0 || ^8.0",
+ "symfony/console": "^6.4 || ^7.0 || ^8.0",
+ "symfony/dependency-injection": "^6.4 || ^7.0 || ^8.0",
+ "symfony/doctrine-bridge": "^6.4.3 || ^7.0.3 || ^8.0",
+ "symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
+ "symfony/service-contracts": "^3"
+ },
+ "conflict": {
+ "doctrine/orm": "<3.0 || >=4.0",
+ "twig/twig": "<3.0.4"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^14",
+ "doctrine/orm": "^3.4.4",
+ "phpstan/phpstan": "2.1.1",
+ "phpstan/phpstan-phpunit": "2.0.3",
+ "phpstan/phpstan-strict-rules": "^2",
+ "phpstan/phpstan-symfony": "^2.0",
+ "phpunit/phpunit": "^12.3.10",
+ "psr/log": "^3.0",
+ "symfony/doctrine-messenger": "^6.4 || ^7.0 || ^8.0",
+ "symfony/expression-language": "^6.4 || ^7.0 || ^8.0",
+ "symfony/messenger": "^6.4 || ^7.0 || ^8.0",
+ "symfony/property-info": "^6.4 || ^7.0 || ^8.0",
+ "symfony/security-bundle": "^6.4 || ^7.0 || ^8.0",
+ "symfony/stopwatch": "^6.4 || ^7.0 || ^8.0",
+ "symfony/string": "^6.4 || ^7.0 || ^8.0",
+ "symfony/twig-bridge": "^6.4 || ^7.0 || ^8.0",
+ "symfony/validator": "^6.4 || ^7.0 || ^8.0",
+ "symfony/web-profiler-bundle": "^6.4 || ^7.0 || ^8.0",
+ "symfony/yaml": "^6.4 || ^7.0 || ^8.0",
+ "twig/twig": "^3.21.1"
+ },
+ "suggest": {
+ "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.",
+ "ext-pdo": "*",
+ "symfony/web-profiler-bundle": "To use the data collector."
+ },
+ "type": "symfony-bundle",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Bundle\\DoctrineBundle\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Benjamin Eberlei",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ },
+ {
+ "name": "Doctrine Project",
+ "homepage": "https://www.doctrine-project.org/"
+ }
+ ],
+ "description": "Symfony DoctrineBundle",
+ "homepage": "https://www.doctrine-project.org",
+ "keywords": [
+ "database",
+ "dbal",
+ "orm",
+ "persistence"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/DoctrineBundle/issues",
+ "source": "https://github.com/doctrine/DoctrineBundle/tree/3.2.2"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdoctrine-bundle",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-12-24T12:24:29+00:00"
+ },
+ {
+ "name": "doctrine/event-manager",
+ "version": "2.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/event-manager.git",
+ "reference": "dda33921b198841ca8dbad2eaa5d4d34769d18cf"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/event-manager/zipball/dda33921b198841ca8dbad2eaa5d4d34769d18cf",
+ "reference": "dda33921b198841ca8dbad2eaa5d4d34769d18cf",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.1"
+ },
+ "conflict": {
+ "doctrine/common": "<2.9"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^14",
+ "phpdocumentor/guides-cli": "^1.4",
+ "phpstan/phpstan": "^2.1.32",
+ "phpunit/phpunit": "^10.5.58"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Common\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Guilherme Blanco",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Roman Borschel",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Benjamin Eberlei",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Jonathan Wage",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Johannes Schmitt",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Marco Pivetta",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.",
+ "homepage": "https://www.doctrine-project.org/projects/event-manager.html",
+ "keywords": [
+ "event",
+ "event dispatcher",
+ "event manager",
+ "event system",
+ "events"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/event-manager/issues",
+ "source": "https://github.com/doctrine/event-manager/tree/2.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2026-01-29T07:11:08+00:00"
+ },
+ {
+ "name": "doctrine/persistence",
+ "version": "4.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/persistence.git",
+ "reference": "b9c49ad3558bb77ef973f4e173f2e9c2eca9be09"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/persistence/zipball/b9c49ad3558bb77ef973f4e173f2e9c2eca9be09",
+ "reference": "b9c49ad3558bb77ef973f4e173f2e9c2eca9be09",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/event-manager": "^1 || ^2",
+ "php": "^8.1",
+ "psr/cache": "^1.0 || ^2.0 || ^3.0"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^14",
+ "phpstan/phpstan": "2.1.30",
+ "phpstan/phpstan-phpunit": "^2",
+ "phpstan/phpstan-strict-rules": "^2",
+ "phpunit/phpunit": "^10.5.58 || ^12",
+ "symfony/cache": "^4.4 || ^5.4 || ^6.0 || ^7.0",
+ "symfony/finder": "^4.4 || ^5.4 || ^6.0 || ^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Persistence\\": "src/Persistence"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Guilherme Blanco",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Roman Borschel",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Benjamin Eberlei",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Jonathan Wage",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Johannes Schmitt",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Marco Pivetta",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.",
+ "homepage": "https://www.doctrine-project.org/projects/persistence.html",
+ "keywords": [
+ "mapper",
+ "object",
+ "odm",
+ "orm",
+ "persistence"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/persistence/issues",
+ "source": "https://github.com/doctrine/persistence/tree/4.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fpersistence",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-10-16T20:13:18+00:00"
+ },
+ {
+ "name": "doctrine/sql-formatter",
+ "version": "1.5.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/sql-formatter.git",
+ "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/9563949f5cd3bd12a17d12fb980528bc141c5806",
+ "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.1"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^14",
+ "ergebnis/phpunit-slow-test-detector": "^2.20",
+ "phpstan/phpstan": "^2.1.31",
+ "phpunit/phpunit": "^10.5.58"
+ },
+ "bin": [
+ "bin/sql-formatter"
+ ],
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\SqlFormatter\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jeremy Dorn",
+ "email": "[email protected]",
+ "homepage": "https://jeremydorn.com/"
+ }
+ ],
+ "description": "a PHP SQL highlighting library",
+ "homepage": "https://github.com/doctrine/sql-formatter/",
+ "keywords": [
+ "highlight",
+ "sql"
+ ],
+ "support": {
+ "issues": "https://github.com/doctrine/sql-formatter/issues",
+ "source": "https://github.com/doctrine/sql-formatter/tree/1.5.4"
+ },
+ "time": "2026-02-08T16:21:46+00:00"
+ },
{
"name": "google/protobuf",
"version": "v4.33.5",
@@ -1416,6 +1924,54 @@
},
"time": "2021-02-03T23:26:27+00:00"
},
+ {
+ "name": "psr/clock",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/clock.git",
+ "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d",
+ "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0 || ^8.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Psr\\Clock\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for reading the clock.",
+ "homepage": "https://github.com/php-fig/clock",
+ "keywords": [
+ "clock",
+ "now",
+ "psr",
+ "psr-20",
+ "time"
+ ],
+ "support": {
+ "issues": "https://github.com/php-fig/clock/issues",
+ "source": "https://github.com/php-fig/clock/tree/1.0.0"
+ },
+ "time": "2022-11-25T14:36:26+00:00"
+ },
{
"name": "psr/container",
"version": "2.0.2",
@@ -2085,7 +2641,158 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/cache-contracts/tree/v3.6.0"
+ "source": "https://github.com/symfony/cache-contracts/tree/v3.6.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-03-13T15:25:07+00:00"
+ },
+ {
+ "name": "symfony/clock",
+ "version": "v8.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/clock.git",
+ "reference": "832119f9b8dbc6c8e6f65f30c5969eca1e88764f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/clock/zipball/832119f9b8dbc6c8e6f65f30c5969eca1e88764f",
+ "reference": "832119f9b8dbc6c8e6f65f30c5969eca1e88764f",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.4",
+ "psr/clock": "^1.0"
+ },
+ "provide": {
+ "psr/clock-implementation": "1.0"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "Resources/now.php"
+ ],
+ "psr-4": {
+ "Symfony\\Component\\Clock\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Decouples applications from the system clock",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "clock",
+ "psr20",
+ "time"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/clock/tree/v8.0.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-11-12T15:46:48+00:00"
+ },
+ {
+ "name": "symfony/config",
+ "version": "v8.0.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/config.git",
+ "reference": "9a34c52187112503d02903ab35e6e3783f580c29"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/config/zipball/9a34c52187112503d02903ab35e6e3783f580c29",
+ "reference": "9a34c52187112503d02903ab35e6e3783f580c29",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.4",
+ "symfony/deprecation-contracts": "^2.5|^3",
+ "symfony/filesystem": "^7.4|^8.0",
+ "symfony/polyfill-ctype": "^1.8"
+ },
+ "conflict": {
+ "symfony/service-contracts": "<2.5"
+ },
+ "require-dev": {
+ "symfony/event-dispatcher": "^7.4|^8.0",
+ "symfony/finder": "^7.4|^8.0",
+ "symfony/messenger": "^7.4|^8.0",
+ "symfony/service-contracts": "^2.5|^3",
+ "symfony/yaml": "^7.4|^8.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Config\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/config/tree/v8.0.7"
},
"funding": [
{
@@ -2096,47 +2803,57 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-03-13T15:25:07+00:00"
+ "time": "2026-03-06T13:17:40+00:00"
},
{
- "name": "symfony/config",
+ "name": "symfony/console",
"version": "v8.0.7",
"source": {
"type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "9a34c52187112503d02903ab35e6e3783f580c29"
+ "url": "https://github.com/symfony/console.git",
+ "reference": "15ed9008a4ebe2d6a78e4937f74e0c13ef2e618a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/9a34c52187112503d02903ab35e6e3783f580c29",
- "reference": "9a34c52187112503d02903ab35e6e3783f580c29",
+ "url": "https://api.github.com/repos/symfony/console/zipball/15ed9008a4ebe2d6a78e4937f74e0c13ef2e618a",
+ "reference": "15ed9008a4ebe2d6a78e4937f74e0c13ef2e618a",
"shasum": ""
},
"require": {
"php": ">=8.4",
- "symfony/deprecation-contracts": "^2.5|^3",
- "symfony/filesystem": "^7.4|^8.0",
- "symfony/polyfill-ctype": "^1.8"
+ "symfony/polyfill-mbstring": "^1.0",
+ "symfony/service-contracts": "^2.5|^3",
+ "symfony/string": "^7.4|^8.0"
},
- "conflict": {
- "symfony/service-contracts": "<2.5"
+ "provide": {
+ "psr/log-implementation": "1.0|2.0|3.0"
},
"require-dev": {
+ "psr/log": "^1|^2|^3",
+ "symfony/config": "^7.4|^8.0",
+ "symfony/dependency-injection": "^7.4|^8.0",
"symfony/event-dispatcher": "^7.4|^8.0",
- "symfony/finder": "^7.4|^8.0",
+ "symfony/http-foundation": "^7.4|^8.0",
+ "symfony/http-kernel": "^7.4|^8.0",
+ "symfony/lock": "^7.4|^8.0",
"symfony/messenger": "^7.4|^8.0",
- "symfony/service-contracts": "^2.5|^3",
- "symfony/yaml": "^7.4|^8.0"
+ "symfony/process": "^7.4|^8.0",
+ "symfony/stopwatch": "^7.4|^8.0",
+ "symfony/var-dumper": "^7.4|^8.0"
},
"type": "library",
"autoload": {
"psr-4": {
- "Symfony\\Component\\Config\\": ""
+ "Symfony\\Component\\Console\\": ""
},
"exclude-from-classmap": [
"/Tests/"
@@ -2156,10 +2873,16 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
+ "description": "Eases the creation of beautiful and testable command line interfaces",
"homepage": "https://symfony.com",
+ "keywords": [
+ "cli",
+ "command-line",
+ "console",
+ "terminal"
+ ],
"support": {
- "source": "https://github.com/symfony/config/tree/v8.0.7"
+ "source": "https://github.com/symfony/console/tree/v8.0.7"
},
"funding": [
{
@@ -2179,7 +2902,7 @@
"type": "tidelift"
}
],
- "time": "2026-03-06T13:17:40+00:00"
+ "time": "2026-03-06T14:06:22+00:00"
},
{
"name": "symfony/dependency-injection",
@@ -2329,6 +3052,184 @@
],
"time": "2024-09-25T14:21:43+00:00"
},
+ {
+ "name": "symfony/doctrine-bridge",
+ "version": "v8.0.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/doctrine-bridge.git",
+ "reference": "649eec3f9cc806e42ee2e7928d05425ed66108d4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/649eec3f9cc806e42ee2e7928d05425ed66108d4",
+ "reference": "649eec3f9cc806e42ee2e7928d05425ed66108d4",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/event-manager": "^2",
+ "doctrine/persistence": "^3.1|^4",
+ "php": ">=8.4",
+ "symfony/polyfill-ctype": "^1.8",
+ "symfony/polyfill-mbstring": "^1.0",
+ "symfony/service-contracts": "^2.5|^3"
+ },
+ "conflict": {
+ "doctrine/collections": "<1.8",
+ "doctrine/dbal": "<4.3",
+ "doctrine/lexer": "<1.1",
+ "doctrine/orm": "<3.4",
+ "symfony/property-info": "<8.0"
+ },
+ "require-dev": {
+ "doctrine/collections": "^1.8|^2.0",
+ "doctrine/data-fixtures": "^1.1|^2",
+ "doctrine/dbal": "^4.3",
+ "doctrine/orm": "^3.4",
+ "psr/log": "^1|^2|^3",
+ "symfony/cache": "^7.4|^8.0",
+ "symfony/config": "^7.4|^8.0",
+ "symfony/dependency-injection": "^7.4|^8.0",
+ "symfony/doctrine-messenger": "^7.4|^8.0",
+ "symfony/expression-language": "^7.4|^8.0",
+ "symfony/form": "^7.4|^8.0",
+ "symfony/http-kernel": "^7.4|^8.0",
+ "symfony/lock": "^7.4|^8.0",
+ "symfony/messenger": "^7.4|^8.0",
+ "symfony/property-access": "^7.4|^8.0",
+ "symfony/property-info": "^8.0",
+ "symfony/security-core": "^7.4|^8.0",
+ "symfony/stopwatch": "^7.4|^8.0",
+ "symfony/translation": "^7.4|^8.0",
+ "symfony/type-info": "^7.4|^8.0",
+ "symfony/uid": "^7.4|^8.0",
+ "symfony/validator": "^7.4|^8.0",
+ "symfony/var-dumper": "^7.4|^8.0"
+ },
+ "type": "symfony-bridge",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Bridge\\Doctrine\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Provides integration for Doctrine with various Symfony components",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/doctrine-bridge/tree/v8.0.7"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2026-03-06T13:17:40+00:00"
+ },
+ {
+ "name": "symfony/doctrine-messenger",
+ "version": "v8.0.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/doctrine-messenger.git",
+ "reference": "88329a3faba5023cfb569b3fc5b8a771336c4a88"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/doctrine-messenger/zipball/88329a3faba5023cfb569b3fc5b8a771336c4a88",
+ "reference": "88329a3faba5023cfb569b3fc5b8a771336c4a88",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/dbal": "^4.3",
+ "php": ">=8.4",
+ "symfony/messenger": "^7.4|^8.0",
+ "symfony/service-contracts": "^2.5|^3"
+ },
+ "conflict": {
+ "doctrine/persistence": "<1.3"
+ },
+ "require-dev": {
+ "doctrine/persistence": "^1.3|^2|^3",
+ "symfony/property-access": "^7.4|^8.0",
+ "symfony/serializer": "^7.4|^8.0"
+ },
+ "type": "symfony-messenger-bridge",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Messenger\\Bridge\\Doctrine\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Doctrine Messenger Bridge",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/doctrine-messenger/tree/v8.0.6"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2026-02-20T07:51:53+00:00"
+ },
{
"name": "symfony/dotenv",
"version": "v7.4.7",
@@ -3207,6 +4108,96 @@
],
"time": "2026-03-06T16:58:46+00:00"
},
+ {
+ "name": "symfony/messenger",
+ "version": "v8.0.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/messenger.git",
+ "reference": "6ba5f08c156cfc95911dbb0da01a9bc390a70fd1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/messenger/zipball/6ba5f08c156cfc95911dbb0da01a9bc390a70fd1",
+ "reference": "6ba5f08c156cfc95911dbb0da01a9bc390a70fd1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.4",
+ "psr/log": "^1|^2|^3",
+ "symfony/clock": "^7.4|^8.0"
+ },
+ "conflict": {
+ "symfony/console": "<7.4",
+ "symfony/event-dispatcher-contracts": "<2.5",
+ "symfony/lock": "<7.4",
+ "symfony/serializer": "<7.4.4|>=8.0,<8.0.4"
+ },
+ "require-dev": {
+ "psr/cache": "^1.0|^2.0|^3.0",
+ "symfony/console": "^7.4|^8.0",
+ "symfony/dependency-injection": "^7.4|^8.0",
+ "symfony/event-dispatcher": "^7.4|^8.0",
+ "symfony/http-kernel": "^7.4|^8.0",
+ "symfony/lock": "^7.4|^8.0",
+ "symfony/process": "^7.4|^8.0",
+ "symfony/property-access": "^7.4|^8.0",
+ "symfony/rate-limiter": "^7.4|^8.0",
+ "symfony/routing": "^7.4|^8.0",
+ "symfony/serializer": "^7.4.4|^8.0.4",
+ "symfony/service-contracts": "^2.5|^3",
+ "symfony/stopwatch": "^7.4|^8.0",
+ "symfony/validator": "^7.4|^8.0",
+ "symfony/var-dumper": "^7.4|^8.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Messenger\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Samuel Roze",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Helps applications send and receive messages to/from other applications or via message queues",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/messenger/tree/v8.0.7"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2026-03-04T13:55:34+00:00"
+ },
{
"name": "symfony/polyfill-ctype",
"version": "v1.33.0",
diff --git a/testing/devtesting-symfony/config/bundles.php b/testing/devtesting-symfony/config/bundles.php
index 49d3fb6f..dcac3c31 100644
--- a/testing/devtesting-symfony/config/bundles.php
+++ b/testing/devtesting-symfony/config/bundles.php
@@ -2,4 +2,5 @@
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
+ Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
];
diff --git a/testing/devtesting-symfony/config/packages/doctrine.yaml b/testing/devtesting-symfony/config/packages/doctrine.yaml
new file mode 100644
index 00000000..e05156be
--- /dev/null
+++ b/testing/devtesting-symfony/config/packages/doctrine.yaml
@@ -0,0 +1,4 @@
+doctrine:
+ dbal:
+ driver: pdo_sqlite
+ url: 'sqlite:///%kernel.project_dir%/var/messenger.db'
diff --git a/testing/devtesting-symfony/config/packages/messenger.yaml b/testing/devtesting-symfony/config/packages/messenger.yaml
new file mode 100644
index 00000000..af0df487
--- /dev/null
+++ b/testing/devtesting-symfony/config/packages/messenger.yaml
@@ -0,0 +1,19 @@
+framework:
+ messenger:
+ buses:
+ messenger.bus.default:
+ middleware:
+ - 'App\Messenger\TracingMiddleware'
+
+ transports:
+ async:
+ dsn: 'doctrine://default'
+ options:
+ table_name: messenger_messages
+ auto_setup: true
+
+ routing:
+ 'App\Message\DataProcessorMessage': async
+ 'App\Message\EmailSendMessage': async
+ 'App\Message\UserDataSyncMessage': async
+ 'App\Message\PaymentProcessorMessage': async
diff --git a/testing/devtesting-symfony/config/reference.php b/testing/devtesting-symfony/config/reference.php
index aef37163..2e595180 100644
--- a/testing/devtesting-symfony/config/reference.php
+++ b/testing/devtesting-symfony/config/reference.php
@@ -426,7 +426,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* resources?: array<string, scalar|Param|null>,
* },
* messenger?: bool|array{ // Messenger configuration
- * enabled?: bool|Param, // Default: false
+ * enabled?: bool|Param, // Default: true
* routing?: array<string, string|array{ // Default: []
* senders?: list<scalar|Param|null>,
* }>,
@@ -690,16 +690,202 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* enabled?: bool|Param, // Default: false
* },
* }
+ * @psalm-type DoctrineConfig = array{
+ * dbal?: array{
+ * default_connection?: scalar|Param|null,
+ * types?: array<string, string|array{ // Default: []
+ * class?: scalar|Param|null,
+ * }>,
+ * driver_schemes?: array<string, scalar|Param|null>,
+ * connections?: array<string, array{ // Default: []
+ * url?: scalar|Param|null, // A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
+ * dbname?: scalar|Param|null,
+ * host?: scalar|Param|null, // Defaults to "localhost" at runtime.
+ * port?: scalar|Param|null, // Defaults to null at runtime.
+ * user?: scalar|Param|null, // Defaults to "root" at runtime.
+ * password?: scalar|Param|null, // Defaults to null at runtime.
+ * dbname_suffix?: scalar|Param|null, // Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
+ * application_name?: scalar|Param|null,
+ * charset?: scalar|Param|null,
+ * path?: scalar|Param|null,
+ * memory?: bool|Param,
+ * unix_socket?: scalar|Param|null, // The unix socket to use for MySQL
+ * persistent?: bool|Param, // True to use as persistent connection for the ibm_db2 driver
+ * protocol?: scalar|Param|null, // The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
+ * service?: bool|Param, // True to use SERVICE_NAME as connection parameter instead of SID for Oracle
+ * servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
+ * sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
+ * server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
+ * default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
+ * sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
+ * sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
+ * sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
+ * sslkey?: scalar|Param|null, // The path to the SSL client key file for PostgreSQL.
+ * sslcrl?: scalar|Param|null, // The file name of the SSL certificate revocation list for PostgreSQL.
+ * pooled?: bool|Param, // True to use a pooled server with the oci8/pdo_oracle driver
+ * MultipleActiveResultSets?: bool|Param, // Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
+ * instancename?: scalar|Param|null, // Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
+ * connectstring?: scalar|Param|null, // Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
+ * driver?: scalar|Param|null, // Default: "pdo_mysql"
+ * auto_commit?: bool|Param,
+ * schema_filter?: scalar|Param|null,
+ * logging?: bool|Param, // Default: true
+ * profiling?: bool|Param, // Default: true
+ * profiling_collect_backtrace?: bool|Param, // Enables collecting backtraces when profiling is enabled // Default: false
+ * profiling_collect_schema_errors?: bool|Param, // Enables collecting schema errors when profiling is enabled // Default: true
+ * server_version?: scalar|Param|null,
+ * idle_connection_ttl?: int|Param, // Default: 600
+ * driver_class?: scalar|Param|null,
+ * wrapper_class?: scalar|Param|null,
+ * keep_replica?: bool|Param,
+ * options?: array<string, mixed>,
+ * mapping_types?: array<string, scalar|Param|null>,
+ * default_table_options?: array<string, scalar|Param|null>,
+ * schema_manager_factory?: scalar|Param|null, // Default: "doctrine.dbal.default_schema_manager_factory"
+ * result_cache?: scalar|Param|null,
+ * replicas?: array<string, array{ // Default: []
+ * url?: scalar|Param|null, // A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
+ * dbname?: scalar|Param|null,
+ * host?: scalar|Param|null, // Defaults to "localhost" at runtime.
+ * port?: scalar|Param|null, // Defaults to null at runtime.
+ * user?: scalar|Param|null, // Defaults to "root" at runtime.
+ * password?: scalar|Param|null, // Defaults to null at runtime.
+ * dbname_suffix?: scalar|Param|null, // Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
+ * application_name?: scalar|Param|null,
+ * charset?: scalar|Param|null,
+ * path?: scalar|Param|null,
+ * memory?: bool|Param,
+ * unix_socket?: scalar|Param|null, // The unix socket to use for MySQL
+ * persistent?: bool|Param, // True to use as persistent connection for the ibm_db2 driver
+ * protocol?: scalar|Param|null, // The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
+ * service?: bool|Param, // True to use SERVICE_NAME as connection parameter instead of SID for Oracle
+ * servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
+ * sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
+ * server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
+ * default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
+ * sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
+ * sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
+ * sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
+ * sslkey?: scalar|Param|null, // The path to the SSL client key file for PostgreSQL.
+ * sslcrl?: scalar|Param|null, // The file name of the SSL certificate revocation list for PostgreSQL.
+ * pooled?: bool|Param, // True to use a pooled server with the oci8/pdo_oracle driver
+ * MultipleActiveResultSets?: bool|Param, // Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
+ * instancename?: scalar|Param|null, // Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
+ * connectstring?: scalar|Param|null, // Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
+ * }>,
+ * }>,
+ * },
+ * orm?: array{
+ * default_entity_manager?: scalar|Param|null,
+ * enable_native_lazy_objects?: bool|Param, // Deprecated: The "enable_native_lazy_objects" option is deprecated and will be removed in DoctrineBundle 4.0, as native lazy objects are now always enabled. // Default: true
+ * controller_resolver?: bool|array{
+ * enabled?: bool|Param, // Default: true
+ * auto_mapping?: bool|Param, // Deprecated: The "doctrine.orm.controller_resolver.auto_mapping.auto_mapping" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0. // Set to true to enable using route placeholders as lookup criteria when the primary key doesn't match the argument name // Default: false
+ * evict_cache?: bool|Param, // Set to true to fetch the entity from the database instead of using the cache, if any // Default: false
+ * },
+ * entity_managers?: array<string, array{ // Default: []
+ * query_cache_driver?: string|array{
+ * type?: scalar|Param|null, // Default: null
+ * id?: scalar|Param|null,
+ * pool?: scalar|Param|null,
+ * },
+ * metadata_cache_driver?: string|array{
+ * type?: scalar|Param|null, // Default: null
+ * id?: scalar|Param|null,
+ * pool?: scalar|Param|null,
+ * },
+ * result_cache_driver?: string|array{
+ * type?: scalar|Param|null, // Default: null
+ * id?: scalar|Param|null,
+ * pool?: scalar|Param|null,
+ * },
+ * entity_listeners?: array{
+ * entities?: array<string, array{ // Default: []
+ * listeners?: array<string, array{ // Default: []
+ * events?: list<array{ // Default: []
+ * type?: scalar|Param|null,
+ * method?: scalar|Param|null, // Default: null
+ * }>,
+ * }>,
+ * }>,
+ * },
+ * connection?: scalar|Param|null,
+ * class_metadata_factory_name?: scalar|Param|null, // Default: "Doctrine\\ORM\\Mapping\\ClassMetadataFactory"
+ * default_repository_class?: scalar|Param|null, // Default: "Doctrine\\ORM\\EntityRepository"
+ * auto_mapping?: scalar|Param|null, // Default: false
+ * naming_strategy?: scalar|Param|null, // Default: "doctrine.orm.naming_strategy.default"
+ * quote_strategy?: scalar|Param|null, // Default: "doctrine.orm.quote_strategy.default"
+ * typed_field_mapper?: scalar|Param|null, // Default: "doctrine.orm.typed_field_mapper.default"
+ * entity_listener_resolver?: scalar|Param|null, // Default: null
+ * fetch_mode_subselect_batch_size?: scalar|Param|null,
+ * repository_factory?: scalar|Param|null, // Default: "doctrine.orm.container_repository_factory"
+ * schema_ignore_classes?: list<scalar|Param|null>,
+ * validate_xml_mapping?: bool|Param, // Set to "true" to opt-in to the new mapping driver mode that was added in Doctrine ORM 2.14 and will be mandatory in ORM 3.0. See https://github.com/doctrine/orm/pull/6728. // Default: false
+ * second_level_cache?: array{
+ * region_cache_driver?: string|array{
+ * type?: scalar|Param|null, // Default: null
+ * id?: scalar|Param|null,
+ * pool?: scalar|Param|null,
+ * },
+ * region_lock_lifetime?: scalar|Param|null, // Default: 60
+ * log_enabled?: bool|Param, // Default: true
+ * region_lifetime?: scalar|Param|null, // Default: 3600
+ * enabled?: bool|Param, // Default: true
+ * factory?: scalar|Param|null,
+ * regions?: array<string, array{ // Default: []
+ * cache_driver?: string|array{
+ * type?: scalar|Param|null, // Default: null
+ * id?: scalar|Param|null,
+ * pool?: scalar|Param|null,
+ * },
+ * lock_path?: scalar|Param|null, // Default: "%kernel.cache_dir%/doctrine/orm/slc/filelock"
+ * lock_lifetime?: scalar|Param|null, // Default: 60
+ * type?: scalar|Param|null, // Default: "default"
+ * lifetime?: scalar|Param|null, // Default: 0
+ * service?: scalar|Param|null,
+ * name?: scalar|Param|null,
+ * }>,
+ * loggers?: array<string, array{ // Default: []
+ * name?: scalar|Param|null,
+ * service?: scalar|Param|null,
+ * }>,
+ * },
+ * hydrators?: array<string, scalar|Param|null>,
+ * mappings?: array<string, bool|string|array{ // Default: []
+ * mapping?: scalar|Param|null, // Default: true
+ * type?: scalar|Param|null,
+ * dir?: scalar|Param|null,
+ * alias?: scalar|Param|null,
+ * prefix?: scalar|Param|null,
+ * is_bundle?: bool|Param,
+ * }>,
+ * dql?: array{
+ * string_functions?: array<string, scalar|Param|null>,
+ * numeric_functions?: array<string, scalar|Param|null>,
+ * datetime_functions?: array<string, scalar|Param|null>,
+ * },
+ * filters?: array<string, string|array{ // Default: []
+ * class?: scalar|Param|null,
+ * enabled?: bool|Param, // Default: false
+ * parameters?: array<string, mixed>,
+ * }>,
+ * identity_generation_preferences?: array<string, scalar|Param|null>,
+ * }>,
+ * resolve_target_entities?: array<string, scalar|Param|null>,
+ * },
+ * }
* @psalm-type ConfigType = array{
* imports?: ImportsConfig,
* parameters?: ParametersConfig,
* services?: ServicesConfig,
* framework?: FrameworkConfig,
+ * doctrine?: DoctrineConfig,
* "when@dev"?: array{
* imports?: ImportsConfig,
* parameters?: ParametersConfig,
* services?: ServicesConfig,
* framework?: FrameworkConfig,
+ * doctrine?: DoctrineConfig,
* },
* ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias
* imports?: ImportsConfig,
diff --git a/testing/devtesting-symfony/src/Controller/TaskController.php b/testing/devtesting-symfony/src/Controller/TaskController.php
new file mode 100644
index 00000000..28df2e16
--- /dev/null
+++ b/testing/devtesting-symfony/src/Controller/TaskController.php
@@ -0,0 +1,53 @@
+<?php
+
+namespace App\Controller;
+
+use App\Message\DataProcessorMessage;
+use App\Message\EmailSendMessage;
+use App\Message\PaymentProcessorMessage;
+use App\Message\UserDataSyncMessage;
+use Symfony\Component\HttpFoundation\JsonResponse;
+use Symfony\Component\Messenger\MessageBusInterface;
+use Symfony\Component\Routing\Attribute\Route;
+
+class TaskController
+{
+ public function __construct(
+ private readonly MessageBusInterface $bus,
+ ) {}
+
+ #[Route('/test-task', methods: ['GET'])]
+ public function testTask(): JsonResponse
+ {
+ $this->bus->dispatch(new DataProcessorMessage(batchSize: 10));
+
+ return new JsonResponse(['status' => 'dispatched', 'task' => 'traceway data processor']);
+ }
+
+ #[Route('/test-task-simple', methods: ['GET'])]
+ public function testTaskSimple(): JsonResponse
+ {
+ $this->bus->dispatch(new EmailSendMessage(
+ subject: 'Welcome to Traceway',
+ ));
+
+ return new JsonResponse(['status' => 'dispatched', 'task' => 'email.send']);
+ }
+
+ #[Route('/test-task-db', methods: ['GET'])]
+ public function testTaskDb(): JsonResponse
+ {
+ $this->bus->dispatch(new UserDataSyncMessage(source: 'primary'));
+
+ return new JsonResponse(['status' => 'dispatched', 'task' => 'user.data.sync']);
+ }
+
+ #[Route('/test-task-error', methods: ['GET'])]
+ public function testTaskError(): JsonResponse
+ {
+ $this->bus->dispatch(new PaymentProcessorMessage(amount: 99.99, currency: 'USD'));
+
+ return new JsonResponse(['status' => 'dispatched', 'task' => 'payment.processor']);
+ }
+}
diff --git a/testing/devtesting-symfony/src/Message/DataProcessorMessage.php b/testing/devtesting-symfony/src/Message/DataProcessorMessage.php
new file mode 100644
index 00000000..b140cde5
--- /dev/null
+++ b/testing/devtesting-symfony/src/Message/DataProcessorMessage.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace App\Message;
+
+class DataProcessorMessage
+{
+ public function __construct(
+ public readonly int $batchSize = 10,
+ ) {}
+}
diff --git a/testing/devtesting-symfony/src/Message/EmailSendMessage.php b/testing/devtesting-symfony/src/Message/EmailSendMessage.php
new file mode 100644
index 00000000..7010c1af
--- /dev/null
+++ b/testing/devtesting-symfony/src/Message/EmailSendMessage.php
@@ -0,0 +1,12 @@
+<?php
+
+namespace App\Message;
+
+class EmailSendMessage
+{
+ public function __construct(
+ public readonly string $to,
+ public readonly string $subject,
+ public readonly string $template = 'welcome_v2',
+ ) {}
+}
diff --git a/testing/devtesting-symfony/src/Message/PaymentProcessorMessage.php b/testing/devtesting-symfony/src/Message/PaymentProcessorMessage.php
new file mode 100644
index 00000000..74f867b1
--- /dev/null
+++ b/testing/devtesting-symfony/src/Message/PaymentProcessorMessage.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace App\Message;
+
+class PaymentProcessorMessage
+{
+ public function __construct(
+ public readonly float $amount,
+ public readonly string $currency = 'USD',
+ ) {}
+}
diff --git a/testing/devtesting-symfony/src/Message/UserDataSyncMessage.php b/testing/devtesting-symfony/src/Message/UserDataSyncMessage.php
new file mode 100644
index 00000000..9964f1b6
--- /dev/null
+++ b/testing/devtesting-symfony/src/Message/UserDataSyncMessage.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace App\Message;
+
+class UserDataSyncMessage
+{
+ public function __construct(
+ public readonly string $source = 'primary',
+ ) {}
+}
diff --git a/testing/devtesting-symfony/src/MessageHandler/DataProcessorHandler.php b/testing/devtesting-symfony/src/MessageHandler/DataProcessorHandler.php
new file mode 100644
index 00000000..a376d678
--- /dev/null
+++ b/testing/devtesting-symfony/src/MessageHandler/DataProcessorHandler.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace App\MessageHandler;
+
+use App\Message\DataProcessorMessage;
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\Span;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+use Symfony\Component\Messenger\Attribute\AsMessageHandler;
+
+#[AsMessageHandler]
+class DataProcessorHandler
+{
+ public function __invoke(DataProcessorMessage $message): void
+ {
+ $tracer = Globals::tracerProvider()->getTracer('devtesting-symfony');
+
+ $loadSpan = $tracer->spanBuilder('loading data')
+ ->setSpanKind(SpanKind::KIND_INTERNAL)
+ ->startSpan();
+ usleep(random_int(100, 2000) * 1000);
+ $loadSpan->end();
+
+ $rootSpan = Span::getCurrent();
+
+ for ($i = 0; $i < $message->batchSize; $i++) {
+ $rootSpan->addEvent("data loaded successfully $i");
+ }
+
+ $rootSpan->setStatus(StatusCode::STATUS_ERROR, 'what an error');
+ $rootSpan->recordException(new \RuntimeException('what an error'));
+ }
+}
diff --git a/testing/devtesting-symfony/src/MessageHandler/EmailSendHandler.php b/testing/devtesting-symfony/src/MessageHandler/EmailSendHandler.php
new file mode 100644
index 00000000..4d4d27ac
--- /dev/null
+++ b/testing/devtesting-symfony/src/MessageHandler/EmailSendHandler.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace App\MessageHandler;
+
+use App\Message\EmailSendMessage;
+use OpenTelemetry\API\Trace\Span;
+use Symfony\Component\Messenger\Attribute\AsMessageHandler;
+
+#[AsMessageHandler]
+class EmailSendHandler
+{
+ public function __invoke(EmailSendMessage $message): void
+ {
+ $span = Span::getCurrent();
+
+ $span->setAttribute('email.to', $message->to);
+ $span->setAttribute('email.subject', $message->subject);
+ $span->setAttribute('email.template', $message->template);
+
+ usleep(random_int(50, 300) * 1000);
+ }
+}
diff --git a/testing/devtesting-symfony/src/MessageHandler/PaymentProcessorHandler.php b/testing/devtesting-symfony/src/MessageHandler/PaymentProcessorHandler.php
new file mode 100644
index 00000000..4d45d068
--- /dev/null
+++ b/testing/devtesting-symfony/src/MessageHandler/PaymentProcessorHandler.php
@@ -0,0 +1,41 @@
+<?php
+
+namespace App\MessageHandler;
+
+use App\Message\PaymentProcessorMessage;
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\Span;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+use Symfony\Component\Messenger\Attribute\AsMessageHandler;
+
+#[AsMessageHandler]
+class PaymentProcessorHandler
+{
+ public function __invoke(PaymentProcessorMessage $message): void
+ {
+ $tracer = Globals::tracerProvider()->getTracer('devtesting-symfony');
+
+ $validateSpan = $tracer->spanBuilder('validate.payment')
+ ->setSpanKind(SpanKind::KIND_INTERNAL)
+ ->startSpan();
+ $validateSpan->setAttribute('payment.amount', $message->amount);
+ $validateSpan->setAttribute('payment.currency', $message->currency);
+ usleep(random_int(20, 100) * 1000);
+ $validateSpan->end();
+
+ $chargeSpan = $tracer->spanBuilder('charge.gateway')
+ ->setSpanKind(SpanKind::KIND_CLIENT)
+ ->startSpan();
+ usleep(random_int(100, 500) * 1000);
+
+ $err = new \RuntimeException('gateway timeout: payment provider unreachable');
+ $chargeSpan->setStatus(StatusCode::STATUS_ERROR, $err->getMessage());
+ $chargeSpan->recordException($err);
+ $chargeSpan->end();
+
+ $rootSpan = Span::getCurrent();
+ $rootSpan->setStatus(StatusCode::STATUS_ERROR, $err->getMessage());
+ $rootSpan->recordException($err);
+ }
+}
diff --git a/testing/devtesting-symfony/src/MessageHandler/UserDataSyncHandler.php b/testing/devtesting-symfony/src/MessageHandler/UserDataSyncHandler.php
new file mode 100644
index 00000000..c9e7fbfd
--- /dev/null
+++ b/testing/devtesting-symfony/src/MessageHandler/UserDataSyncHandler.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace App\MessageHandler;
+
+use App\Message\UserDataSyncMessage;
+use OpenTelemetry\API\Trace\Span;
+use Symfony\Component\Messenger\Attribute\AsMessageHandler;
+
+#[AsMessageHandler]
+class UserDataSyncHandler
+{
+ public function __invoke(UserDataSyncMessage $message): void
+ {
+ $span = Span::getCurrent();
+
+ $span->setAttribute('sync.source', $message->source);
+
+ $dbPath = dirname(__DIR__, 2) . '/var/devtesting.db';
+ $db = new \PDO("sqlite:$dbPath");
+ $db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
+
+ $db->exec('CREATE TABLE IF NOT EXISTS users (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ first_name TEXT NOT NULL,
+ last_name TEXT NOT NULL,
+ email TEXT UNIQUE NOT NULL
+ )');
+
+ $stmt = $db->query('SELECT COUNT(*) as count FROM users');
+ $count = $stmt->fetch(\PDO::FETCH_ASSOC)['count'];
+
+ $span->setAttribute('sync.users_count', (int) $count);
+ $span->addEvent('user data sync completed');
+ }
+}
diff --git a/testing/devtesting-symfony/src/Messenger/TracedMessage.php b/testing/devtesting-symfony/src/Messenger/TracedMessage.php
new file mode 100644
index 00000000..b82a9483
--- /dev/null
+++ b/testing/devtesting-symfony/src/Messenger/TracedMessage.php
@@ -0,0 +1,8 @@
+<?php
+
+namespace App\Messenger;
+
+interface TracedMessage
+{
+ public function getSpanName(): string;
+}
diff --git a/testing/devtesting-symfony/src/Messenger/TracingMiddleware.php b/testing/devtesting-symfony/src/Messenger/TracingMiddleware.php
new file mode 100644
index 00000000..9a978486
--- /dev/null
+++ b/testing/devtesting-symfony/src/Messenger/TracingMiddleware.php
@@ -0,0 +1,58 @@
+<?php
+
+namespace App\Messenger;
+
+use OpenTelemetry\API\Globals;
+use OpenTelemetry\API\Trace\SpanKind;
+use OpenTelemetry\API\Trace\StatusCode;
+use Symfony\Component\Messenger\Envelope;
+use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
+use Symfony\Component\Messenger\Middleware\StackInterface;
+use Symfony\Component\Messenger\Stamp\ReceivedStamp;
+
+class TracingMiddleware implements MiddlewareInterface
+{
+ public function handle(Envelope $envelope, StackInterface $stack): Envelope
+ {
+ if (!$envelope->last(ReceivedStamp::class)) {
+ return $stack->next()->handle($envelope, $stack);
+ }
+
+ $message = $envelope->getMessage();
+ $spanName = $this->resolveSpanName($message);
+
+ $tracer = Globals::tracerProvider()->getTracer('devtesting-symfony');
+ $span = $tracer->spanBuilder($spanName)
+ ->setParent(false)
+ ->setSpanKind(SpanKind::KIND_CONSUMER)
+ ->startSpan();
+ $scope = $span->activate();
+
+ try {
+ $envelope = $stack->next()->handle($envelope, $stack);
+ } catch (\Throwable $e) {
+ $span->recordException($e);
+ $span->setStatus(StatusCode::STATUS_ERROR, $e->getMessage());
+ throw $e;
+ } finally {
+ $span->end();
+ $scope->detach();
+ }
+
+ return $envelope;
+ }
+
+ private function resolveSpanName(object $message): string
+ {
+ if ($message instanceof TracedMessage) {
+ return $message->getSpanName();
+ }
+
+ $class = (new \ReflectionClass($message))->getShortName();
+ $class = preg_replace('/Message$/', '', $class);
+
+ // PascalCase → dot.separated lowercase
+ $name = preg_replace('/([a-z])([A-Z])/', '$1.$2', $class);
+ return strtolower($name);
+ }
+}