Commit 70697445 authored by beagaliana's avatar beagaliana Committed by beagaliana
Browse files

Issue #3263367 by beagaliana: Add KeyRepositoryInterface for object...

Issue #3263367 by beagaliana: Add KeyRepositoryInterface for object declaration in key module integration
parent 36384f16
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ namespace Drupal\whatsapp\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\key\KeyRepository;
use Drupal\key\KeyRepositoryInterface;
use Drupal\key\Key;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -30,7 +30,7 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface
    /**
     * The key.
     *
     * @var \Drupal\key\KeyRepository
     * @var \Drupal\key\KeyRepositoryInterface
     */
    protected $configKey;

@@ -45,10 +45,10 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface
     *   The plugin implementation definition.
     * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
     *   The factory for configuration objects.
     * @param \Drupal\key\KeyRepository $config_key
     * @param \Drupal\key\KeyRepositoryInterface $config_key
     *   The key.
     */
    public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepository $config_key) {
    public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepositoryInterface $config_key) {
        parent::__construct($configuration, $plugin_id, $plugin_definition);
        $this->configFactory = $config_factory;
        $this->configKey = $config_key;