> <Registry MyApp>
> <Container DBI>
> dsn dbi:mysql:test
> username test
> password ****
> connect [ DBI connect [ @dsn @username @password ]]
> </Container>
> </Registry>
<Registry MyApp>
<Container DBI>
Literal dsn dbi:mysql:test
Literal username test
Literal password ****
<ConstructorInjection connect>
Class DBI
Constructor connect
Parameter dsn
Parameter username
Parameter password
</ConstructorInjection>
</Container>
</Registry>
Or, you can have the Literal items be containers. It's up to you.
The important things to note:
1) You can have multiple items on the same line
2) You can aggregate multiple lines into the same option
3) You can have hash options, so that the first item is the key to the
rest of the line
4) Structure your config file the way you structure your code - it'll
make more sense to you.
Rob
_______________________________________________
sw-design mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/sw-design