Skip to content

Commit 5257ceb

Browse files
committed
Remove usage of AssetPublisher
Fixes barryvdh#244 and barryvdh#245
1 parent b0a3082 commit 5257ceb

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

src/Console/PublishCommand.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,6 @@ class PublishCommand extends Command
2525
*/
2626
protected $description = 'Publish the Debugbar assets';
2727

28-
/**
29-
* The asset publisher instance.
30-
*
31-
* @var \Illuminate\Foundation\AssetPublisher
32-
*/
33-
protected $assetPublisher;
34-
35-
/**
36-
* Create a new Publish command
37-
*
38-
* @param \Illuminate\Foundation\AssetPublisher $assetPublisher
39-
*/
40-
public function __construct($assetPublisher)
41-
{
42-
parent::__construct();
43-
44-
$this->assetPublisher = $assetPublisher;
45-
}
46-
4728
/**
4829
* Execute the console command.
4930
*

src/ServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ function ($app) {
9999

100100
$this->app['command.debugbar.publish'] = $this->app->share(
101101
function ($app) {
102-
//Make sure the asset publisher is registered.
103-
$app->register('Illuminate\Foundation\Providers\PublisherServiceProvider');
104-
return new Console\PublishCommand($app['asset.publisher']);
102+
return new Console\PublishCommand();
105103
}
106104
);
107105

0 commit comments

Comments
 (0)