Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3920099
D206.id488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D206.id488.diff
View Options
diff --git a/app/Providers/BrokerServiceProvider.php b/app/Providers/BrokerServiceProvider.php
--- a/app/Providers/BrokerServiceProvider.php
+++ b/app/Providers/BrokerServiceProvider.php
@@ -2,6 +2,7 @@
namespace Nasqueron\Notifications\Providers;
+use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Keruald\Broker\AMQPBroker as Broker;
@@ -25,7 +26,7 @@
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function register() {
- $this->app->singleton('broker', function ($app) {
+ $this->app->singleton('broker', function (Application $app) {
$broker = new Broker();
$broker->connect(
Config::get('broker.connections.amqp.host'),
diff --git a/app/Providers/ReportServiceProvider.php b/app/Providers/ReportServiceProvider.php
--- a/app/Providers/ReportServiceProvider.php
+++ b/app/Providers/ReportServiceProvider.php
@@ -3,6 +3,7 @@
namespace Nasqueron\Notifications\Providers;
use Illuminate\Contracts\Events\Dispatcher;
+use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Nasqueron\Notifications\Actions\ActionsReport;
@@ -15,7 +16,7 @@
* @return void
*/
public function register() {
- $this->app->singleton('report', function ($app) {
+ $this->app->singleton('report', function (Application $app) {
$report = new ActionsReport();
static::listenToActionsForReport($report, $app['events']);
return $report;
diff --git a/app/Providers/ServicesServiceProvider.php b/app/Providers/ServicesServiceProvider.php
--- a/app/Providers/ServicesServiceProvider.php
+++ b/app/Providers/ServicesServiceProvider.php
@@ -2,6 +2,7 @@
namespace Nasqueron\Notifications\Providers;
+use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Nasqueron\Notifications\Services\Services;
@@ -13,7 +14,7 @@
* @return void
*/
public function register() {
- $this->app->singleton('services', function ($app) {
+ $this->app->singleton('services', function (Application $app) {
$path = config('services.gate.credentials');
if ($app->make('filesystem')->has($path)) {
return Services::loadFromJson($path);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 13:33 (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2309192
Default Alt Text
D206.id488.diff (2 KB)
Attached To
Mode
D206: Typehint Application in service providers
Attached
Detach File
Event Timeline
Log In to Comment