Skip to content

Commit

Permalink
make AbstractDataCollector extend DataCollector to reduce boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed Jun 10, 2021
1 parent 05a7020 commit c8ec05d
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -11,16 +11,13 @@

namespace Symfony\Bundle\FrameworkBundle\DataCollector;

use Symfony\Component\HttpKernel\DataCollector\DataCollector;

/**
* @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>
*/
abstract class AbstractDataCollector implements TemplateAwareDataCollectorInterface
abstract class AbstractDataCollector extends DataCollector implements TemplateAwareDataCollectorInterface
{
/**
* @var array
*/
protected $data = [];

public function getName(): string
{
return static::class;
Expand Down

0 comments on commit c8ec05d

Please sign in to comment.