From 62ea3fc9c7276891689177df4ec28e607e6cff3b Mon Sep 17 00:00:00 2001 From: Lukas Homza Date: Tue, 19 Apr 2016 07:55:03 +0200 Subject: [PATCH] removing unneccessary state accessor initialization in costructor as it collides with array loaders ability to use new state accessor logic --- src/Finite/StateMachine/StateMachine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Finite/StateMachine/StateMachine.php b/src/Finite/StateMachine/StateMachine.php index 47caad8..7a5da30 100644 --- a/src/Finite/StateMachine/StateMachine.php +++ b/src/Finite/StateMachine/StateMachine.php @@ -77,7 +77,7 @@ public function __construct( ) { $this->object = $object; $this->dispatcher = $dispatcher ?: new EventDispatcher(); - $this->stateAccessor = $stateAccessor ?: new PropertyPathStateAccessor(); + $this->stateAccessor = $stateAccessor; } /**