Skip to content

Commit

Permalink
Update OrmExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Jan 25, 2025
1 parent f931e1c commit 3aff06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getConfigSchema(): Schema
'connection' => Expect::string()->required(),
'entityManagerDecoratorClass' => Expect::string()->assert(fn ($input) => is_a($input, EntityManagerDecorator::class, true), 'EntityManager decorator class must be subclass of ' . EntityManagerDecorator::class),
'configurationClass' => Expect::string(Configuration::class)->assert(fn ($input) => is_a($input, Configuration::class, true), 'Configuration class must be subclass of ' . Configuration::class),
'proxyDir' => Expect::string()->default($proxyDir)->before(fn (mixed $v) => $v ?? $proxyDir)->assert(fn (mixed $v) => $v === null || $v === '', 'proxyDir must be filled'),
'proxyDir' => Expect::string()->default($proxyDir)->before(fn (mixed $v) => $v ?? $proxyDir)->assert(fn (mixed $v) => !($v === null || $v === ''), 'proxyDir must be filled'),
'autoGenerateProxyClasses' => Expect::anyOf(Expect::int(), Expect::bool(), Expect::type(Statement::class))->default($autoGenerateProxy),
'proxyNamespace' => Expect::string('Nettrine\Proxy')->nullable(),
'metadataDriverImpl' => Expect::string(),
Expand Down

0 comments on commit 3aff06f

Please sign in to comment.