Commit 927f1152 authored by Nic Rodgers's avatar Nic Rodgers Committed by Fabian de Rijk
Browse files

Issue #3292868: FloodUnblockAdminForm requires AccountProxy instead of AccountProxyInterface

parent e55f91e4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\flood_control\FloodUnblockManager;
use Drupal\Core\Session\AccountProxy;
use Drupal\Core\Session\AccountProxyInterface;

/**
 * Admin form of Flood Unblock.
@@ -47,7 +47,7 @@ class FloodUnblockAdminForm extends FormBase {
  /**
   * Current user object.
   *
   * @var \Drupal\Core\Session\AccountProxy
   * @var \Drupal\Core\Session\AccountProxyInterface
   */
  protected $currentUser;

@@ -60,10 +60,10 @@ class FloodUnblockAdminForm extends FormBase {
   *   The database connection.
   * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
   *   The date formatter service.
   * @param \Drupal\Core\Session\AccountProxy $currentUser
   * @param \Drupal\Core\Session\AccountProxyInterface $currentUser
   *   The current user service.
   */
  public function __construct(FloodUnblockManager $floodUnblockManager, Connection $database, DateFormatterInterface $date_formatter, AccountProxy $currentUser) {
  public function __construct(FloodUnblockManager $floodUnblockManager, Connection $database, DateFormatterInterface $date_formatter, AccountProxyInterface $currentUser) {
    $this->floodUnblockManager = $floodUnblockManager;
    $this->database = $database;
    $this->dateFormatter = $date_formatter;