Search by

coolms / entity-bundle

coolms

Symfony integration for coolms/entity: the bundle and its extension, the extras infrastructure compiler passes, API Platform property metadata factories for dynamic fields, and the entity search endpoint

Package info

github.com/coolms/entity-bundle

Type:symfony-bundle

pkg:composer/coolms/entity-bundle

Statistics

Installs: 26

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0-alpha2 2026-09-03 18:44 UTC

README

CI Latest Version PHP License

Symfony integration for coolms/entity.

Register in config/bundles.php:

CoolMS\EntityBundle\EntityBundle::class => ['all' => true],
  • DependencyInjection\Extension -- wires the alias registry, the schema lookup, the extras infrastructure and the entity-factory locator, and declares the entity.extras_validation configuration.
  • DependencyInjection\Compiler\ExtrasInfrastructurePass -- re-asserts that wiring after the application's own service scan, which loads later and would otherwise replace the definitions and silently drop decoration markers, scalar arguments and event-listener tags.
  • ApiPlatform\Extras*Factory -- surfaces dynamic fields in API Platform property metadata so extras appear in the generated schema and OpenAPI document alongside static properties.
  • Controller\EntitySearchController -- the cross-entity search endpoint.

Installation

composer require coolms/entity-bundle coolms/core-doctrine coolms/entity-doctrine

The adapter is part of the install, not a second step. This bundle pulls in coolms/entity-module, which requires the virtual coolms/entity-persistence-implementation. Only an adapter provides it, so composer require coolms/entity-bundle on its own cannot resolve — Composer reports that the virtual package "could not be found in any version", which reads like a broken package rather than a missing argument.

The hard failure is by design. The alternative is a platform that installs cleanly and then cannot persist anything. coolms/entity-doctrine is the adapter that exists today; substitute another if you write one.