Fork me on Github

Class Finite\Factory\ SymfonyDependencyInjectionFactory

A concrete implementation of State Machine Factory using the sf2 DIC


Inherits from: AbstractFactory

Methods

StateMachineInterface get( StatefulInterface $object)

Returns a StateMachine instance initialized on $object

from AbstractFactory
addLoader( LoaderInterface $loader)

from AbstractFactory
__construct( ContainerInterface $container, string $key)

Details

public StateMachineInterface get( StatefulInterface $object)

Returns a StateMachine instance initialized on $object

Parameters
StatefulInterface $object
Return Value
StateMachineInterface

public addLoader( LoaderInterface $loader)

Parameters
LoaderInterface $loader

public __construct( ContainerInterface $container, string $key)

Parameters
ContainerInterface $container
string $key