From 744c2b0c86b88f77e681f8660bf3a476e83711b8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 27 Jan 2021 13:56:28 +0300 Subject: Move temporal plugin to the temporal repository --- tests/plugins/temporal/worker.php | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tests/plugins/temporal/worker.php (limited to 'tests/plugins/temporal/worker.php') diff --git a/tests/plugins/temporal/worker.php b/tests/plugins/temporal/worker.php deleted file mode 100644 index 0d0263e7..00000000 --- a/tests/plugins/temporal/worker.php +++ /dev/null @@ -1,33 +0,0 @@ - - */ -$getClasses = static function (string $dir): iterable { - $files = glob($dir . '/*.php'); - - foreach ($files as $file) { - yield substr(basename($file), 0, -4); - } -}; - -$factory = \Temporal\WorkerFactory::create(); - -$worker = $factory->newWorker('default'); - -// register all workflows -foreach ($getClasses(__DIR__ . '/../../temporal/Workflow') as $name) { - $worker->registerWorkflowType('Temporal\\Tests\\Workflow\\' . $name); -} - -// register all activity -foreach ($getClasses(__DIR__ . '/../../temporal/Activity') as $name) { - $worker->registerActivityType('Temporal\\Tests\\Activity\\' . $name); -} - -$factory->run(); -- cgit v1.2.3