#!/usr/bin/env php safeLoad(); foreach (new DirectoryIterator(__DIR__ . '/config') as $file) { if ($file->isDot() || $file->isDir()) { continue; } if ($file->getExtension() !== 'json') { continue; } $worker = new LogSource($file->getPathname()); $worker->work(); }