Skip to content

Commit 116ba38

Browse files
authored
Update to handle Laravel 5.4
(Should still work with 5.1+)
1 parent f65d346 commit 116ba38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Monitors/ServerMonitorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function createForMonitorConfig(array $monitorConfiguration, array
2525
if (file_exists(__DIR__.'/'.ucfirst($monitorName).'Monitor.php')) {
2626
$className = '\\EricMakesStuff\\ServerMonitor\\Monitors\\'.ucfirst($monitorName).'Monitor';
2727
return collect($monitorConfigs)->map(function($monitorConfig) use ($className) {
28-
return app($className, [$monitorConfig]);
28+
return new $className($monitorConfig);
2929
});
3030
}
3131

0 commit comments

Comments
 (0)