Skip to content

Commit cb1c24a

Browse files
authored
update comment
1 parent db06ab9 commit cb1c24a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/05a-constructor-binding.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PdoModuleLegacyNaming extends AbstractModule
1313
{
1414
protected function configure()
1515
{
16-
// dsn=pdo_dsn works
16+
// 'dsn=pdo_dsn' (still) works
1717
$this->bind(PDO::class)->toConstructor(\PDO::class, 'dsn=pdo_dsn');
1818
$this->bind()->annotatedWith('pdo_dsn')->toInstance('sqlite::memory:');
1919
}
@@ -23,7 +23,7 @@ class PdoModule extends AbstractModule
2323
{
2424
protected function configure()
2525
{
26-
// 'dsn' => 'pdo_dsn' works
26+
// ['dsn' => 'pdo_dsn'] works (recommended)
2727
$this->bind(PDO::class)->toConstructor(\PDO::class, ['dsn' => 'pdo_dsn']);
2828
$this->bind()->annotatedWith('pdo_dsn')->toInstance('sqlite::memory:');
2929
}

0 commit comments

Comments
 (0)