diff --git a/src/Worker/Worker.php b/src/Worker/Worker.php index f37a98d3..cb96c36f 100644 --- a/src/Worker/Worker.php +++ b/src/Worker/Worker.php @@ -26,7 +26,7 @@ * Worker manages the execution of workflows and activities within the single TaskQueue. Activity and Workflow processing * will be launched using separate processes. */ -class Worker implements WorkerInterface, EventListenerInterface, DispatcherInterface +class Worker implements WorkerWithRepositoriesInterface, EventListenerInterface, DispatcherInterface { use EventEmitterTrait; diff --git a/src/Worker/WorkerWithRepositoriesInterface.php b/src/Worker/WorkerWithRepositoriesInterface.php new file mode 100644 index 00000000..4ed9572d --- /dev/null +++ b/src/Worker/WorkerWithRepositoriesInterface.php @@ -0,0 +1,23 @@ + + */ + public function getWorkflows(): RepositoryInterface; + + /** + * @return RepositoryInterface + */ + public function getActivities(): RepositoryInterface; +}