Finite icon indicating copy to clipboard operation
Finite copied to clipboard

A Simple PHP Finite State Machine

Results 63 Finite issues
Sort by recently updated
recently updated
newest added

Hey there @yohang , this repo and the library does not get the love it deserves. There are multiple open issues and a LOT of PRs ready to be merged...

Hi, When using a custom property_path (I mean different than "finiteState"), there's a BC break when updating from v1.1.0 to v1.1.1, caused by the commit c7a5672377695cdf65cd5f9a3372c18d0f02d7c1 Before the update, I...

This should fix issue described in #117 . I have tried different initializations on my end and seems everything is fine. @stephenjwinn Can you please confirm if this does indeed...

I have tested the examples. Examples multiple-graphs-with-factory.php and multiple-graphs.php do not work. Here is what we get. ``` php multiple-graphs-with-factory.php PHP Fatal error: Class 'Pimple' not found in vendor/yohang/finite/examples/multiple-graphs-with-factory.php on...

Is there any example which shows state machine starting with normal state? Transitions can be affected by different users. I need to save all transitions in database. And state machine...

I'm using Symfony 4.4. The documentation at https://finite.readthedocs.io/en/master/usage/symfony.html#using-callbacks say: > Events dispatched with the EventDispatcher and works as the Symfony kernel events. This would seem to imply that one can...

If `symfony/contracts` is also used in the project, there versions 1.2.* have an issue: ``` TypeError : Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null,...

The [issue 77](https://github.com/yohang/Finite/issues/77) explain the problem. I suggest this change to resolve it.

Transitions can (dis)approve their execution based on the current stateful object