First look at making entity creation closure-driven

this allows doing stuff like injecting plugin references to entity constructors for now. I want to make this more flexible still, but I've done about as much as I feel like doing today and don't want this disappearing into a stash to never be seen again.
This commit is contained in:
Dylan K. Taylor
2020-05-21 21:38:45 +01:00
parent 3bdd9ee860
commit 72a7fc68c1
2 changed files with 109 additions and 44 deletions

View File

@ -20,6 +20,16 @@ parameters:
count: 3
path: ../../../src/command/CommandReader.php
-
message: "#^Closure invoked with 2 parameters, at least 3 required\\.$#"
count: 1
path: ../../../src/entity/EntityFactory.php
-
message: "#^Only iterables can be unpacked, mixed given in argument \\#3\\.$#"
count: 6
path: ../../../src/entity/EntityFactory.php
-
message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#"
count: 1