PHP Class Prooph\EventStore\Container\Aggregate\AggregateRepositoryFactory

Don't extend from this class! in next major version this class will be final.
Inheritance: implements Interop\Config\RequiresConfigId, implements Interop\Config\RequiresMandatoryOptions, use trait Interop\Config\ConfigurationTrait
Show file Open project: prooph/event-store

Public Methods

Method Description
__callStatic ( string $name, array $arguments ) : mixed Creates a new instance from a specified config, specifically meant to be used as static factory.
__construct ( string $configId )
__invoke ( Interop\Container\ContainerInterface $container ) : AggregateRepository
dimensions ( )
mandatoryOptions ( )

Method Details

__callStatic() public static method

In case you want to use another config key than provided by the factories, you can add the following factory to your config: [AggregateRepositoryFactory::class, 'your_aggregate_class'], ];
public static __callStatic ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed

__construct() public method

public __construct ( string $configId )
$configId string

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container ) : AggregateRepository
$container Interop\Container\ContainerInterface
return Prooph\EventStore\Aggregate\AggregateRepository

dimensions() public method

public dimensions ( )

mandatoryOptions() public method

public mandatoryOptions ( )