Skip to content

Gember Event Sourcing File Finder adapter based on symfony/finder

License

Notifications You must be signed in to change notification settings

GemberPHP/file-finder-symfony

Repository files navigation

🫚 Gember File Finder: Symfony Finder

Software License PHP Version

Gember Event Sourcing File Finder adapter based on symfony/finder.

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-finder-symfony

Configuration

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

Examples

Vanilla PHP

use Gember\FileFinderSymfony\SymfonyFinder;
use Gember\FileFinderSymfony\SymfonyFinderFactory;

$finder = new SymfonyFinder(
    new SymfonyFinderFactory(), 
);

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 Finder.

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

Gember\FileFinderSymfony\SymfonyFinderFactory: ~

Gember\EventSourcing\Util\File\Finder\Finder:
  class: Gember\FileFinderSymfony\SymfonyFinder
  arguments:
    - '@Gember\FileFinderSymfony\SymfonyFinderFactory'

Releases

No releases published

Packages

No packages published

Languages