File tree Expand file tree Collapse file tree 7 files changed +5092
-10
lines changed Expand file tree Collapse file tree 7 files changed +5092
-10
lines changed Original file line number Diff line number Diff line change 6
6
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
7
7
8
8
/vendor
9
- .env
9
+ / .env
10
10
/public /robots.txt
11
11
/public /sitemap.xml
12
- ! .env.example
Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ public function afterCreate()
260
260
* Queue notifications to be sent
261
261
*/
262
262
/** @var Beanstalk $queue */
263
- $ queue = $ this -> getDI ()-> getShared ('queue ' );
263
+ $ queue = container ('queue ' );
264
264
$ queue ->choose ('notifications ' );
265
265
/** @var DiscordComponent $discord */
266
- $ discord = $ this -> getDI ()-> getShared ('discord ' );
266
+ $ discord = container ('discord ' );
267
267
$ queue ->put ($ toNotify );
268
268
$ discord ->addMessageAboutDiscussion ($ this );
269
269
}
Original file line number Diff line number Diff line change @@ -235,11 +235,11 @@ public function afterCreate()
235
235
* Queue notifications to be sent
236
236
*/
237
237
/** @var Beanstalk $queue */
238
- $ queue = $ this -> getDI ()-> getShared ('queue ' );
238
+ $ queue = container ('queue ' );
239
239
$ queue ->choose ('notifications ' );
240
240
$ queue ->put ($ toNotify );
241
241
/** @var DiscordComponent $discord */
242
- $ discord = $ this -> getDI ()-> getShared ('discord ' );
242
+ $ discord = container ('discord ' );
243
243
$ discord ->addMessageAboutReply ($ this );
244
244
}
245
245
}
@@ -257,7 +257,7 @@ public function afterSave()
257
257
$ history ->save ();
258
258
if ($ this ->hasUpdated ('accepted ' ) && $ this ->accepted == 'Y ' ) {
259
259
/** @var DiscordComponent $discord */
260
- $ discord = $ this -> getDI ()-> getShared ('discord ' );
260
+ $ discord = container ('discord ' );
261
261
$ discord ->addMessageAboutSolvedDiscussion ($ this );
262
262
}
263
263
}
Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ function () {
65
65
$ this ->serviceName ,
66
66
function () use ($ service ) {
67
67
$ run = new Run ();
68
- $ run ->pushHandler (container ("{$ service }.loggerHandler " ));
69
-
70
68
$ mode = container ('bootstrap ' )->getMode ();
71
69
72
70
switch ($ mode ) {
@@ -95,6 +93,8 @@ function () use ($service) {
95
93
);
96
94
}
97
95
96
+ $ run ->pushHandler (container ("{$ service }.loggerHandler " ));
97
+
98
98
return $ run ;
99
99
}
100
100
);
Original file line number Diff line number Diff line change @@ -61,6 +61,6 @@ public function peekReady()
61
61
62
62
public function choose ($ tube )
63
63
{
64
- singleton ('logger ' )->debug (' Chosen tube: $tube ' );
64
+ singleton ('logger ' )->debug (" Chosen tube: { $ tube}" );
65
65
}
66
66
}
You can’t perform that action at this time.
0 commit comments