Commit 9d67c372 authored by Grimreaper's avatar Grimreaper Committed by borisson_
Browse files

Issue #2839141 by Grimreaper: Fatal errors when using webprofiler

parent aa8cbf65
......@@ -28,14 +28,14 @@ class CoreNodeSearchFacetSource extends FacetSourcePluginBase implements CoreSea
/**
* The entity manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager|null
* @var \Drupal\Core\Entity\EntityTypeManagerInterface|null
*/
protected $entityTypeManager;
/**
* The typed data manager.
*
* @var \Drupal\Core\TypedData\TypedDataManager|null
* @var \Drupal\Core\TypedData\TypedDataManagerInterface|null
*/
protected $typedDataManager;
......
......@@ -4,7 +4,7 @@ namespace Drupal\facets_summary\Form;
use Drupal\Component\Utility\Html;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\SubformState;
use Drupal\facets\FacetManager\DefaultFacetManager;
use Drupal\Core\Form\FormStateInterface;
......@@ -34,7 +34,7 @@ class FacetsSummaryForm extends EntityForm {
/**
* The entity manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......@@ -62,7 +62,7 @@ class FacetsSummaryForm extends EntityForm {
/**
* Constructs an FacetDisplayForm object.
*
* @param \Drupal\Core\Entity\EntityTypeManager $entity_type_manager
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity manager.
* @param \Drupal\facets\FacetSource\FacetSourcePluginManager $facet_source_plugin_manager
* The plugin manager for facet sources.
......@@ -71,7 +71,7 @@ class FacetsSummaryForm extends EntityForm {
* @param \Drupal\facets_summary\Processor\ProcessorPluginManager $processor_plugin_manager
* The Facets Summary Processor Plugin Manager.
*/
public function __construct(EntityTypeManager $entity_type_manager, FacetSourcePluginManager $facet_source_plugin_manager, DefaultFacetManager $facet_manager, ProcessorPluginManager $processor_plugin_manager) {
public function __construct(EntityTypeManagerInterface $entity_type_manager, FacetSourcePluginManager $facet_source_plugin_manager, DefaultFacetManager $facet_manager, ProcessorPluginManager $processor_plugin_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->facetSourcePluginManager = $facet_source_plugin_manager;
$this->facetSummaryStorage = $entity_type_manager->getStorage('facets_summary');
......
......@@ -28,7 +28,7 @@ class FacetsSummarySettingsForm extends EntityForm {
/**
* The entity manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......
......@@ -11,7 +11,7 @@ use Drupal\facets_summary\FacetsSummaryManager\DefaultFacetsSummaryManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Exposes a summary based on all the facets as a blcok.
* Exposes a summary based on all the facets as a block.
*
* @Block(
* id = "facets_summary_block",
......
......@@ -2,7 +2,7 @@
namespace Drupal\facets;
use Drupal\Core\Block\BlockManager;
use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
......@@ -15,17 +15,17 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* Drupal core's block manager.
*
* @var \Drupal\Core\Block\BlockManager
* @var \Drupal\Core\Block\BlockManagerInterface
*/
protected $blockManager;
/**
* Create an instance of the class.
*
* @param \Drupal\Core\Block\BlockManager $block_manager
* @param \Drupal\Core\Block\BlockManagerInterface $block_manager
* Core's block manager.
*/
public function __construct(BlockManager $block_manager) {
public function __construct(BlockManagerInterface $block_manager) {
$this->blockManager = $block_manager;
}
......
......@@ -3,7 +3,7 @@
namespace Drupal\facets\Plugin\Condition;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Block\BlockManager;
use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Core\Condition\ConditionPluginBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\FormStateInterface;
......@@ -36,7 +36,7 @@ class OtherFacet extends ConditionPluginBase implements ContainerFactoryPluginIn
/**
* The block plugin manager.
*
* @var \Drupal\Core\Block\BlockManager
* @var \Drupal\Core\Block\BlockManagerInterface
*/
protected $blockManager;
......@@ -59,7 +59,7 @@ class OtherFacet extends ConditionPluginBase implements ContainerFactoryPluginIn
*
* @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
* The entity storage.
* @param \Drupal\Core\Block\BlockManager $block_manager
* @param \Drupal\Core\Block\BlockManagerInterface $block_manager
* The block plugin manager.
* @param \Drupal\Core\Session\AccountProxyInterface $current_user
* The currently logged in user.
......@@ -75,7 +75,7 @@ class OtherFacet extends ConditionPluginBase implements ContainerFactoryPluginIn
* @param mixed $plugin_definition
* The plugin implementation definition.
*/
public function __construct(EntityStorageInterface $entity_storage, BlockManager $block_manager, AccountProxyInterface $current_user, DefaultFacetManager $facet_manager, array $configuration, $plugin_id, $plugin_definition) {
public function __construct(EntityStorageInterface $entity_storage, BlockManagerInterface $block_manager, AccountProxyInterface $current_user, DefaultFacetManager $facet_manager, array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->facetStorage = $entity_storage;
$this->blockManager = $block_manager;
......
......@@ -2,7 +2,7 @@
namespace Drupal\facets\Utility;
use Drupal\Core\Datetime\DateFormatter;
use Drupal\Core\Datetime\DateFormatterInterface;
/**
* Dates Handler service.
......@@ -62,17 +62,17 @@ class FacetsDateHandler {
/**
* The date formatting service.
*
* @var \Drupal\Core\Datetime\DateFormatter
* @var \Drupal\Core\Datetime\DateFormatterInterface
*/
protected $dateFormatter;
/**
* FacetsDateHandler constructor.
*
* @param \Drupal\Core\Datetime\DateFormatter $date_formatter
* @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
* The date formatting service.
*/
public function __construct(DateFormatter $date_formatter) {
public function __construct(DateFormatterInterface $date_formatter) {
$this->dateFormatter = $date_formatter;
}
......
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