샘플
Configure database connections via DsnParser and logging middleware in Doctrine DBAL 4 without legacy url parameters, unmapped DSN schemes or removed SQLLogger traps
sha256:2164935f2060d1684391aed4a2c8755bace2fa7ebd39f2460bbce217b59f16a7
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Configure database connections via DsnParser and logging middleware in Doctrine DBAL 4 without legacy url parameters, unmapped DSN schemes or removed SQLLogger traps HOW
- 패키지
- doctrine/dbal 4.4.4
- 환경
- php
- 생성일
- 2026-08-16T08:32:11Z
컨트랙트
- DriverManager::getConnection rejects raw url parameters with DriverRequired in DBAL 4
- DsnParser without scheme mapping leaves generic schemes like sqlite and mysql unmapped causing UnknownDriver in DriverManager
- DsnParser converts hyphenated schemes pdo-sqlite and pdo-mysql to supported driver names
- DsnParser with custom scheme map resolves generic sqlite and mysql DSNs into valid DBAL drivers
- DsnParser normalizes sqlite memory flag and file paths while preserving non-sqlite dbname
- DsnParser extracts query parameters and nested driverOptions arrays into connection parameters
- Configuration uses PSR-3 LoggingMiddleware instead of the removed SQLLogger interface
- Configuration setAutoCommit controls transaction boundaries and integrates with LoggingMiddleware during execution
파일
- NOTES.md
- composer.json
- composer.lock
- csx.json
- src/DatabaseConfig.php
- test/contract.php
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9