Commit aa0a7064 authored by GoZ's avatar GoZ Committed by lussoluca

Issue #2895297 by GoZ: ServicesDataCollector must be instance of Container error

parent a61fab12
......@@ -5,7 +5,7 @@ namespace Drupal\webprofiler\DataCollector;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\webprofiler\DependencyInjection\TraceableContainer;
use Drupal\webprofiler\DrupalDataCollectorInterface;
use Drupal\Core\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
......@@ -18,15 +18,15 @@ class ServicesDataCollector extends DataCollector implements DrupalDataCollector
use StringTranslationTrait, DrupalDataCollectorTrait;
/**
* @var \Drupal\Core\DependencyInjection\Container
* @var \Symfony\Component\DependencyInjection\ContainerInterface
* $container
*/
private $container;
/**
* @param \Drupal\Core\DependencyInjection\Container $container
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
*/
public function __construct(Container $container) {
public function __construct(ContainerInterface $container) {
$this->container = $container;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment