We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e840349 commit 4bca26dCopy full SHA for 4bca26d
src/DI/OrmExtension.php
@@ -85,7 +85,7 @@ public function getConfigSchema(): Schema
85
{
86
$parameters = $this->getContainerBuilder()->parameters;
87
$proxyDir = isset($parameters['tempDir']) ? $parameters['tempDir'] . '/cache/doctrine/orm/proxies' : null;
88
- $autoGenerateProxy = boolval($parameters['debugMode'] ?? true);
+ $autoGenerateProxy = Expect::anyOf(Expect::int(), Expect::bool(), Expect::type(Statement::class))->default(2); // 2 is Doctrine\Common\Proxy\AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS
89
90
$expectService = Expect::anyOf(
91
Expect::string()->required()->assert(fn ($input) => str_starts_with($input, '@') || class_exists($input) || interface_exists($input)),
0 commit comments