fix schema manager proxy

This commit is contained in:
Yuri Kuznetsov
2023-01-28 21:13:37 +02:00
parent ea8ba18d2e
commit 282f701b77
@@ -36,11 +36,15 @@ use Doctrine\DBAL\Schema\SchemaException;
class SchemaManagerProxy
{
private ?SchemaManager $schemaManager = null;
public function __construct(private InjectableFactory $injectableFactory) {}
private function getSchemaManager(): SchemaManager
{
return $this->injectableFactory->create(SchemaManager::class);
$this->schemaManager ??= $this->injectableFactory->create(SchemaManager::class);
return $this->schemaManager;
}
/**