ShowTable: extract ActionConfiguration and RowActionConfiguration
diff --git a/src/EventActionRegistryFactory.php b/src/EventActionRegistryFactory.php
index 88d75a3..3d96cb3 100644
--- a/src/EventActionRegistryFactory.php
+++ b/src/EventActionRegistryFactory.php
@@ -5,8 +5,8 @@
use BaclucC5Crud\Controller\ActionProcessor;
-use BaclucC5Crud\Controller\ActionProcessors\ShowTable;
use BaclucC5Crud\Controller\ActionRegistry;
+use BaclucC5Crud\Controller\ActionRegistryFactory;
use BaclucEventPackage\NextEvent\ShowNextEvent;
class EventActionRegistryFactory
@@ -20,12 +20,16 @@
private $actions;
public function __construct(
- ShowNextEvent $showLastEvent,
- ShowTable $showTable,
+ ActionRegistryFactory $actionRegistryFactory,
+ ShowNextEvent $showNextEvent,
ShowCancelEventForm $showCancelEventForm,
PostCancelEventForm $postCancelEventForm
) {
- $this->actions = func_get_args();
+
+ $this->actions = $actionRegistryFactory->createActionRegistry()->getActions();
+ $this->actions[] = $showNextEvent;
+ $this->actions[] = $showCancelEventForm;
+ $this->actions[] = $postCancelEventForm;
}