File tree 2 files changed +24
-6
lines changed
ContentRepository/Service
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 11
11
* source code.
12
12
*/
13
13
14
+ use Doctrine \ORM \EntityManagerInterface ;
15
+ use Neos \ContentRepository \Domain \Factory \NodeFactory ;
16
+ use Neos \ContentRepository \Domain \Model \NodeData ;
14
17
use Neos \ContentRepository \Domain \Model \NodeInterface ;
15
18
use Neos \ContentRepository \Domain \Model \Workspace ;
19
+ use Neos \ContentRepository \Domain \Repository \NodeDataRepository ;
16
20
use Neos \ContentRepository \Domain \Service \Context ;
17
21
use Neos \ContentRepository \Domain \Service \ContextFactoryInterface ;
18
22
use Neos \ContentRepository \Domain \Utility \NodePaths ;
@@ -47,6 +51,24 @@ class NodeService
47
51
*/
48
52
protected $ domainRepository ;
49
53
54
+ /**
55
+ * @Flow\Inject
56
+ * @var NodeDataRepository
57
+ */
58
+ protected $ nodeDataRepository ;
59
+
60
+ /**
61
+ * @Flow\Inject
62
+ * @var EntityManagerInterface
63
+ */
64
+ protected $ entityManager ;
65
+
66
+ /**
67
+ * @Flow\Inject
68
+ * @var NodeFactory
69
+ */
70
+ protected $ nodeFactory ;
71
+
50
72
/**
51
73
* @var array<string, Context>
52
74
*/
Original file line number Diff line number Diff line change @@ -533,13 +533,9 @@ public function flowQueryAction(array $chain): string
533
533
$ finisher = array_pop ($ chain );
534
534
535
535
$ nodeContextPaths = array_unique (array_column ($ createContext ['payload ' ], '$node ' ));
536
+ $ nodes = $ this ->nodeService ->getNodesFromContextPaths ($ nodeContextPaths );
536
537
537
- $ flowQuery = new FlowQuery (array_map (
538
- function ($ contextPath ) {
539
- return $ this ->nodeService ->getNodeFromContextPath ($ contextPath );
540
- },
541
- $ nodeContextPaths
542
- ));
538
+ $ flowQuery = new FlowQuery ($ nodes );
543
539
544
540
foreach ($ chain as $ operation ) {
545
541
$ flowQuery = call_user_func_array ([$ flowQuery , $ operation ['type ' ]], $ operation ['payload ' ]);
You can’t perform that action at this time.
0 commit comments