Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

Commit

Permalink
Renamed Publish Group config to cfg (publish doesn't work with config…
Browse files Browse the repository at this point in the history
… group)
  • Loading branch information
CupOfTea696 committed Apr 25, 2015
1 parent f0eb940 commit 54219a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/TwoStreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ public function boot(WsRouter $router)
parent::boot($router);

$this->publishes([
__DIR__.'/../app/Ws/Kernel.stub' => app_path('Ws/Kernel.stub'),
__DIR__.'/../app/Ws/Controllers/Controller.stub' => app_path('Ws/Controllers/Controller.stub'),
__DIR__ . '/../app/Ws/Kernel.stub' => app_path('Ws/Kernel.stub'),
__DIR__ . '/../app/Ws/Controllers/Controller.stub' => app_path('Ws/Controllers/Controller.stub'),
], 'required');

$this->publishes([
__DIR__.'/../config/twostream.php' => config_path('twostream.php'),
], 'config');
__DIR__ . '/../config/twostream.php' => config_path('twostream.php'),
], 'cfg');
}

/**
Expand All @@ -71,7 +71,7 @@ public function map(WsRouter $router)
require app_path('Ws/routes.php');
});
}

/**
* Register the service provider.
*
Expand Down Expand Up @@ -99,7 +99,7 @@ public function register()
);

$this->app->bindShared('CupOfTea\TwoStream\Contracts\Factory', function($app){
$config = $this->app['config']['twostream'];
$config = array_dot($this->app['config']['twostream']);

return new TwoStream($config);
});
Expand Down

0 comments on commit 54219a6

Please sign in to comment.