From f50e644a31cb6949248ca1dcccc836df20aea4ef Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 20 Dec 2023 21:55:59 +0100 Subject: Use [] array syntax in example config --- data/bdrem.config.php.dist | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/data/bdrem.config.php.dist b/data/bdrem.config.php.dist index 1e877e8..46773ed 100644 --- a/data/bdrem.config.php.dist +++ b/data/bdrem.config.php.dist @@ -1,57 +1,57 @@ '/path/to/file.csv', - 'columns' => array( + 'columns' => [ 'name' => 0, 'event' => 1, 'date' => 2 - ), + ], 'firstLineIsHeader' => true, 'defaultEvent' => 'Birthday', 'separator' => ',', - ) -); + ] +]; //Source: SQL database -$source = array( +$source = [ 'Sql', - array( + [ 'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1', 'user' => 'FIXME', 'password' => 'FIXME', 'table' => 'contacts', - 'fields' => array( - 'date' => array( + 'fields' => [ + 'date' => [ //column name => event title 'c_birthday' => 'Birthday' - ), + ], //column with name, or array with column names - 'name' => array('c_name'), + 'name' => ['c_name'], //sprintf-compatible name formatting instruction 'nameFormat' => '%s', - ) - ) -); + ] + ] +]; //Source: LDAP -$source = array( +$source = [ 'Ldap', - array( + [ 'host' => 'ldap.example.org', 'basedn' => 'ou=adressbuch,dc=example,dc=org', 'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org', 'bindpw' => 'FIXME' - ) -); + ] +]; //Source: Directory of .vcf vCard files (2 subfolder levels supported) $source = [ @@ -68,5 +68,5 @@ $locale = 'de_DE.UTF-8'; //email settings $mail_from = 'birthday@example.org'; -$mail_to = array('a@example.org', 'b@example.org'); +$mail_to = ['a@example.org', 'b@example.org']; ?> -- cgit v1.2.3