diff --git a/src/Generator/ActivityInterfaceGenerator.php b/src/Generator/ActivityInterfaceGenerator.php index 871b2f2..50573a4 100644 --- a/src/Generator/ActivityInterfaceGenerator.php +++ b/src/Generator/ActivityInterfaceGenerator.php @@ -13,7 +13,7 @@ final class ActivityInterfaceGenerator implements FileGeneratorInterface { public function generate(Context $context, PhpNamespace $namespace): PhpCodePrinter { - $class = \Nette\PhpGenerator\InterfaceType::from($context->getClass()); + $class = new \Nette\PhpGenerator\InterfaceType($context->getClass(), $namespace); $class->addAttribute(ActivityInterface::class, ['prefix' => $context->getBaseClass('.')]); foreach ($context->getActivityMethods() as $method) { diff --git a/src/Generator/HandlerInterfaceGenerator.php b/src/Generator/HandlerInterfaceGenerator.php index 31a415f..c39eda6 100644 --- a/src/Generator/HandlerInterfaceGenerator.php +++ b/src/Generator/HandlerInterfaceGenerator.php @@ -11,7 +11,7 @@ class HandlerInterfaceGenerator implements FileGeneratorInterface { public function generate(Context $context, PhpNamespace $namespace): PhpCodePrinter { - $class = \Nette\PhpGenerator\InterfaceType::from($context->getClass()); + $class = new \Nette\PhpGenerator\InterfaceType($context->getClass(), $namespace); $class->addMember($handler = $context->getHandlerMethod()); $handler->setReturnType(RunningWorkflow::class); diff --git a/src/Generator/WorkflowInterfaceGenerator.php b/src/Generator/WorkflowInterfaceGenerator.php index 787fc7d..cae4994 100644 --- a/src/Generator/WorkflowInterfaceGenerator.php +++ b/src/Generator/WorkflowInterfaceGenerator.php @@ -16,7 +16,7 @@ public function generate(Context $context, PhpNamespace $namespace): PhpCodePrin { $className = $context->getClass(); - $class = \Nette\PhpGenerator\InterfaceType::from($className); + $class = new \Nette\PhpGenerator\InterfaceType($className, $namespace); $class->addAttribute(WorkflowInterface::class);