Skip to content

Commit

Permalink
Remove deprecated TwigCollector (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored Mar 21, 2024
1 parent 86af350 commit 8a26490
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/DataCollector/ViewCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
namespace Barryvdh\Debugbar\DataCollector;

use Barryvdh\Debugbar\DataFormatter\SimpleFormatter;
use DebugBar\Bridge\Twig\TwigCollector;
use DebugBar\DataCollector\AssetProvider;
use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\Renderable;
use Illuminate\View\View;

class ViewCollector extends TwigCollector
class ViewCollector extends DataCollector implements Renderable, AssetProvider
{
protected $name;
protected $templates = [];
Expand Down Expand Up @@ -51,6 +53,17 @@ public function getWidgets()
];
}

/**
* @return array
*/
public function getAssets()
{
return [
'css' => 'widgets/templates/widget.css',
'js' => 'widgets/templates/widget.js',
];
}

/**
* Add a View instance to the Collector
*
Expand Down

0 comments on commit 8a26490

Please sign in to comment.