Permalink
Browse files

di-configuration: info about passing params

  • Loading branch information...
dg committed Mar 6, 2018
1 parent 6f49525 commit 6babe058740e05a82aa5deef07378c3be804ba00
Showing with 8 additions and 0 deletions.
  1. +4 −0 cs/di-configuration.texy
  2. +4 −0 en/di-configuration.texy
@@ -59,6 +59,10 @@ services:
database:
factory: PDO(%dsn%, %user%, %password%)

# s názvy parametrů (na pořadí nezáleží)
database:
factory: PDO(dsn: %dsn%, username: %user%)

# nebo ve třech řádcích :-)
database:
factory: PDO
@@ -59,6 +59,10 @@ services:
database:
factory: PDO(%dsn%, %user%, %password%)

# with parameter names (the order does not matter)
database:
factory: PDO(dsn: %dsn%, username: %user%)

# or more multi-lines :-)
database:
factory: PDO

0 comments on commit 6babe05

Please sign in to comment.