From 0e46795cb5f5df04f9e156687758b58bbdbf4dd5 Mon Sep 17 00:00:00 2001 From: Tomas Norre Mikkelsen Date: Wed, 15 Jan 2025 22:13:06 +0100 Subject: [PATCH] wip: Add comment for code, that should not be reach in the context of nested creation --- src/Maker/Factory/FactoryGenerator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Maker/Factory/FactoryGenerator.php b/src/Maker/Factory/FactoryGenerator.php index 76148a4b..02418c9a 100644 --- a/src/Maker/Factory/FactoryGenerator.php +++ b/src/Maker/Factory/FactoryGenerator.php @@ -97,6 +97,9 @@ function(string $newClassName) use ($factoryClass) { } } + // Should never do this if file/class already exists. + // A class_exists($factoryClass), return false, I don't know if it's not part of the autoloader, that the class is not found. + // I suspect that it's part of the problem. $generator->generateClass( $factoryClass, __DIR__.'/../../../skeleton/Factory.tpl.php',