];
//Source: Directory of .vcf vCard files (2 subfolder levels supported)
-$source = [
- 'vCard',
- [
- 'folder' => '/home/cweiske/dev/contacts-backup/contacts'
- ]
-];
+$source = ['vCard', '/home/user/contacts/'];
$daysPrev = 3;
/**
* Set the VCard folder path
*/
- public function __construct(array $config)
+ public function __construct($config)
{
+ if (is_string($config)) {
+ $config = array(
+ 'folder' => $config
+ );
+ }
$this->folder = $config['folder'];
if (!is_dir($this->folder)) {
throw new \Exception(