Commit c040367f authored by webchick's avatar webchick

Issue #2253977 by martin107, Mixologic: Use ConfigFactoryInterface to type...

Issue #2253977 by martin107, Mixologic: Use ConfigFactoryInterface to type hint ConfigFactory, Part II.
parent d309714c
...@@ -30,7 +30,7 @@ final class ConfigEvents { ...@@ -30,7 +30,7 @@ final class ConfigEvents {
/** /**
* Name of event fired when renaming a configuration object. * Name of event fired when renaming a configuration object.
* *
* @see \Drupal\Core\Config\ConfigFactory::rename(). * @see \Drupal\Core\Config\ConfigFactoryInterface::rename().
*/ */
const RENAME = 'config.rename'; const RENAME = 'config.rename';
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\Core\EventSubscriber; namespace Drupal\Core\EventSubscriber;
use Drupal\Core\Config\Config; use Drupal\Core\Config\Config;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Language\Language; use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageManager; use Drupal\Core\Language\LanguageManager;
use Drupal\Core\Site\Settings; use Drupal\Core\Site\Settings;
...@@ -43,10 +43,10 @@ class FinishResponseSubscriber implements EventSubscriberInterface { ...@@ -43,10 +43,10 @@ class FinishResponseSubscriber implements EventSubscriberInterface {
* *
* @param LanguageManager $language_manager * @param LanguageManager $language_manager
* The LanguageManager object for retrieving the correct language code. * The LanguageManager object for retrieving the correct language code.
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* A config factory for retrieving required config objects. * A config factory for retrieving required config objects.
*/ */
public function __construct(LanguageManager $language_manager, ConfigFactory $config_factory) { public function __construct(LanguageManager $language_manager, ConfigFactoryInterface $config_factory) {
$this->languageManager = $language_manager; $this->languageManager = $language_manager;
$this->config = $config_factory->get('system.performance'); $this->config = $config_factory->get('system.performance');
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\aggregator\Plugin\AggregatorPluginManager; use Drupal\aggregator\Plugin\AggregatorPluginManager;
use Drupal\Component\Plugin\Exception\PluginException; use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactoryInterface;
/** /**
* Defines an importer of aggregator items. * Defines an importer of aggregator items.
...@@ -47,7 +47,7 @@ class ItemsImporter implements ItemsImporterInterface { ...@@ -47,7 +47,7 @@ class ItemsImporter implements ItemsImporterInterface {
/** /**
* Constructs an Importer object. * Constructs an Importer object.
* *
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects. * The factory for configuration objects.
* @param \Drupal\aggregator\Plugin\AggregatorPluginManager $fetcher_manager * @param \Drupal\aggregator\Plugin\AggregatorPluginManager $fetcher_manager
* The aggregator fetcher plugin manager. * The aggregator fetcher plugin manager.
...@@ -56,7 +56,7 @@ class ItemsImporter implements ItemsImporterInterface { ...@@ -56,7 +56,7 @@ class ItemsImporter implements ItemsImporterInterface {
* @param \Drupal\aggregator\Plugin\AggregatorPluginManager $processor_manager * @param \Drupal\aggregator\Plugin\AggregatorPluginManager $processor_manager
* The aggregator processor plugin manager. * The aggregator processor plugin manager.
*/ */
public function __construct(ConfigFactory $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager) { public function __construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager) {
$this->fetcherManager = $fetcher_manager; $this->fetcherManager = $fetcher_manager;
$this->processorManager = $processor_manager; $this->processorManager = $processor_manager;
$this->parserManager = $parser_manager; $this->parserManager = $parser_manager;
......
...@@ -44,7 +44,7 @@ class DisplayOverview extends DisplayOverviewBase { ...@@ -44,7 +44,7 @@ class DisplayOverview extends DisplayOverviewBase {
* The widget or formatter plugin manager. * The widget or formatter plugin manager.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler class to use for invoking hooks. * The module handler class to use for invoking hooks.
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The configuration factory. * The configuration factory.
*/ */
public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManager $field_type_manager, PluginManagerBase $plugin_manager, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory) { public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManager $field_type_manager, PluginManagerBase $plugin_manager, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory) {
......
...@@ -57,7 +57,7 @@ abstract class DisplayOverviewBase extends OverviewBase { ...@@ -57,7 +57,7 @@ abstract class DisplayOverviewBase extends OverviewBase {
* The field type manager. * The field type manager.
* @param \Drupal\Component\Plugin\PluginManagerBase $plugin_manager * @param \Drupal\Component\Plugin\PluginManagerBase $plugin_manager
* The widget or formatter plugin manager. * The widget or formatter plugin manager.
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The configuration factory. * The configuration factory.
*/ */
public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, ConfigFactoryInterface $config_factory) { public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, ConfigFactoryInterface $config_factory) {
......
...@@ -44,7 +44,7 @@ class FormDisplayOverview extends DisplayOverviewBase { ...@@ -44,7 +44,7 @@ class FormDisplayOverview extends DisplayOverviewBase {
* The widget or formatter plugin manager. * The widget or formatter plugin manager.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler to use for invoking hooks. * The module handler to use for invoking hooks.
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The configuration factory. * The configuration factory.
*/ */
public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManager $field_type_manager, PluginManagerBase $plugin_manager, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory) { public function __construct(EntityManagerInterface $entity_manager, FieldTypePluginManager $field_type_manager, PluginManagerBase $plugin_manager, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory) {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactoryInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
...@@ -26,12 +26,12 @@ class StatisticsSettingsForm extends ConfigFormBase { ...@@ -26,12 +26,12 @@ class StatisticsSettingsForm extends ConfigFormBase {
/** /**
* Constructs a \Drupal\user\StatisticsSettingsForm object. * Constructs a \Drupal\user\StatisticsSettingsForm object.
* *
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects. * The factory for configuration objects.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler. * The module handler.
*/ */
public function __construct(ConfigFactory $config_factory, ModuleHandlerInterface $module_handler) { public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory); parent::__construct($config_factory);
$this->moduleHandler = $module_handler; $this->moduleHandler = $module_handler;
......
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