File tree 2 files changed +23
-12
lines changed 2 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 10
10
* This source file is subject to the MIT license that is bundled.
11
11
*/
12
12
13
- use Illuminate \Routing \Router ;
14
13
use Illuminate \Support \Facades \Route ;
15
14
16
15
Route::group (
20
19
'as ' => 'soar.bar. ' ,
21
20
'middleware ' => [],
22
21
]),
23
- static function (Router $ router ): void {
24
- $ router ->get ('assets/stylesheets ' , 'AssetController@css ' )->name ('assets.css ' );
25
- $ router ->get ('assets/javascript ' , 'AssetController@js ' )->name ('assets.js ' );
26
- $ router ->get ('fonts/fontawesome-webfont.{suffix} ' , 'AssetController@font ' )->name ('assets.webfont ' );
27
- $ router ->get ('fonts/FontAwesome.otf ' , 'AssetController@fontAwesome ' )->name ('assets.font ' );
22
+ static function ($ router ): void {
23
+ $ router ->get ('assets/stylesheets ' , [
24
+ 'uses ' => 'AssetController@css ' ,
25
+ 'as ' => 'assets.css ' ,
26
+ ]);
27
+
28
+ $ router ->get ('assets/javascript ' , [
29
+ 'uses ' => 'AssetController@js ' ,
30
+ 'as ' => 'assets.js ' ,
31
+ ]);
32
+
33
+ $ router ->get ('fonts/fontawesome-webfont.{suffix} ' , [
34
+ 'uses ' => 'AssetController@font ' ,
35
+ 'as ' => 'assets.webfont ' ,
36
+ ]);
37
+
38
+ $ router ->get ('fonts/FontAwesome.otf ' , [
39
+ 'uses ' => 'AssetController@fontAwesome ' ,
40
+ 'as ' => 'assets.font ' ,
41
+ ]);
28
42
}
29
43
);
Original file line number Diff line number Diff line change 12
12
13
13
namespace Guanguans \LaravelSoar \Outputs ;
14
14
15
- use Illuminate \Log \LogManager ;
16
15
use Illuminate \Support \Collection ;
16
+ use Illuminate \Support \Facades \Log ;
17
17
18
18
class LogOutput extends Output
19
19
{
20
- protected LogManager $ logger ;
21
-
22
20
protected string $ channel ;
23
21
24
- public function __construct (LogManager $ logger , string $ channel = 'daily ' )
22
+ public function __construct (string $ channel = 'daily ' )
25
23
{
26
- $ this ->logger = $ logger ;
27
24
$ this ->channel = $ channel ;
28
25
}
29
26
@@ -34,7 +31,7 @@ public function __construct(LogManager $logger, string $channel = 'daily')
34
31
*/
35
32
public function output (Collection $ scores , $ dispatcher ): void
36
33
{
37
- $ scores ->each (fn (array $ score ) => $ this -> logger -> channel ($ this ->channel )->warning (
34
+ $ scores ->each (fn (array $ score ) => Log:: channel ($ this ->channel )->warning (
38
35
$ score ['Summary ' ].PHP_EOL .to_pretty_json ($ score )
39
36
));
40
37
}
You can’t perform that action at this time.
0 commit comments