We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65d346 commit 116ba38Copy full SHA for 116ba38
src/Monitors/ServerMonitorFactory.php
@@ -25,7 +25,7 @@ public static function createForMonitorConfig(array $monitorConfiguration, array
25
if (file_exists(__DIR__.'/'.ucfirst($monitorName).'Monitor.php')) {
26
$className = '\\EricMakesStuff\\ServerMonitor\\Monitors\\'.ucfirst($monitorName).'Monitor';
27
return collect($monitorConfigs)->map(function($monitorConfig) use ($className) {
28
- return app($className, [$monitorConfig]);
+ return new $className($monitorConfig);
29
});
30
}
31
0 commit comments