Skip to content

Commit

Permalink
Give notice for publishing assets
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Sep 4, 2014
1 parent bb7a79b commit af681df
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/Console/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,6 @@ public function __construct($assetPublisher)
*/
public function fire()
{

$package = 'maximebf/php-debugbar';
if ( ! is_null($path = $this->getDebugBarPath()))
{
$this->assetPublisher->publish($package, $path);
$this->info('Assets published for package: '.$package);
}
else
{
$this->error('Could not find path for: '.$package);
}
$this->assetPublisher->publish('barryvdh/laravel-debugbar', $this->getPackagePublicPath());
$this->info('Assets published for package: barryvdh/laravel-debugbar');

}

protected function getDebugBarPath() {
$reflector = new \ReflectionClass('DebugBar\DebugBar');
return dirname($reflector->getFileName()) . DIRECTORY_SEPARATOR . 'Resources';
$this->info('NOTICE: Since laravel-debugbar 1.7.x, publishing assets is no longer necessary. The assets in public/packages/barryvdh/laravel-debugbar and maximebf/php-debugbar can be safely removed.');
}

protected function getPackagePublicPath() {
return __DIR__.'/../Resources';
}

}

0 comments on commit af681df

Please sign in to comment.