We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db06ab9 commit cb1c24aCopy full SHA for cb1c24a
demo/05a-constructor-binding.php
@@ -13,7 +13,7 @@ class PdoModuleLegacyNaming extends AbstractModule
13
{
14
protected function configure()
15
16
- // dsn=pdo_dsn works
+ // 'dsn=pdo_dsn' (still) works
17
$this->bind(PDO::class)->toConstructor(\PDO::class, 'dsn=pdo_dsn');
18
$this->bind()->annotatedWith('pdo_dsn')->toInstance('sqlite::memory:');
19
}
@@ -23,7 +23,7 @@ class PdoModule extends AbstractModule
23
24
25
26
- // 'dsn' => 'pdo_dsn' works
+ // ['dsn' => 'pdo_dsn'] works (recommended)
27
$this->bind(PDO::class)->toConstructor(\PDO::class, ['dsn' => 'pdo_dsn']);
28
29
0 commit comments