Skip to content

Gember Event Sourcing File Reflector adapter based on roave/better-reflection

License

Notifications You must be signed in to change notification settings

GemberPHP/file-reflector-roave

Repository files navigation

🫚 Gember File Reflector: Roave BetterReflection

Software License PHP Version

Gember Event Sourcing File Reflector adapter based on roave/better-reflection.

All external dependencies in Gember Event Sourcing are organized into separate packages, making it easy to swap out a vendor adapter for another.

Installation

Install with Composer:

composer require gember/file-reflector-roave

Configuration

Bind this adapter to the Reflector interface in your service definitions.

Examples

Vanilla PHP

use Gember\FileReflectorRoave\RoaveBetterReflectionFactory;
use Gember\FileReflectorRoave\RoaveBetterReflectionReflector;

$reflector = new RoaveBetterReflectionReflector(
    new RoaveBetterReflectionFactory(), 
);

Symfony

It is recommended to use the Symfony bundle to configure Gember Event Sourcing. With this bundle, the adapter is automatically set as the default for File Reflector.

If you're not using the bundle, you can bind it directly to the Reflector interface.

Gember\FileReflectorRoave\RoaveBetterReflectionFactory: ~

Gember\EventSourcing\Util\File\Reflector\Reflector:
  class: Gember\FileReflectorRoave\RoaveBetterReflectionReflector
  arguments:
    - '@Gember\FileReflectorRoave\RoaveBetterReflectionFactory'

Releases

No releases published

Packages

No packages published

Languages