Skip to content

Commit 0923278

Browse files
committed
Update README.md
1 parent 24f7fcc commit 0923278

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $data = new Data(array(
5151
'username' => 'dman',
5252
'password' => 'D---S',
5353
'roles' => array('web', 'db'),
54+
'nick' => 'dewey dman'
5455
),
5556
'lewey' => array(
5657
'username' => 'lman',
@@ -66,6 +67,10 @@ $username = $data->get('hosts.hewey.username');
6667
$password = $data->get('hosts.hewey.password');
6768
// array('web')
6869
$roles = $data->get('hosts.hewey.roles');
70+
// dewey dman
71+
$nick = $data->get('hosts.dewey.nick');
72+
// Unknown
73+
$nick = $data->get('hosts.lewey.nick', 'Unknown');
6974

7075
// DataInterface instance
7176
$dewey = $data->getData('hosts.dewey');

0 commit comments

Comments
 (0)