-
-
Notifications
You must be signed in to change notification settings - Fork 165
Added discord integration #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
| ); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one fails PHPCS.
|
Okay fixes done, not sure about failing test, seems no related really. It was passing already this test so maybe rerun it in travis? Oh i see i can do it myself. |
|
Anyone have anything more to add? @sergeyklay @niden ? Maybe i should add some tests to it? |
|
Thanks Juri! |
|
@Jurigag Could you please return back the |
|
@Jurigag Also can you update the Wiki |
sergeyklay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jurigag Also cold you take a look at my comments
| */ | ||
| $this->getDI()->getShared('queue')->put($toNotify); | ||
| /** @var Beanstalk $queue */ | ||
| $queue = $this->getDI()->getShared('queue'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$queue = singleton('queue');| $queue = $this->getDI()->getShared('queue'); | ||
| $queue->choose('notifications'); | ||
| /** @var DiscordComponent $discord */ | ||
| $discord = $this->getDI()->getShared('discord'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$discord = singleton('discord');| */ | ||
| $this->getDI()->getShared('queue')->put($toNotify); | ||
| /** @var Beanstalk $queue */ | ||
| $queue = $this->getDI()->getShared('queue'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$queue = singleton('queue');| $history->save(); | ||
| if ($this->hasUpdated('accepted') && $this->accepted == 'Y') { | ||
| /** @var DiscordComponent $discord */ | ||
| $discord = $this->getDI()->getShared('discord'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$discord = singleton('discord');| $queue->choose('notifications'); | ||
| $queue->put($toNotify); | ||
| /** @var DiscordComponent $discord */ | ||
| $discord = $this->getDI()->getShared('discord'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$discord = singleton('discord');| function () { | ||
| $config = container('config')->discord; | ||
|
|
||
| return new DiscordComponent($config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DiscordService. ServiceProvider not ComponentProvider right?
There was
composer.lockfile added to git, idk why exactly. I removed it because it shouldn't be on repo.