Skip to content
Snippets Groups Projects

Issue #3292868: FloodUnblockAdminForm requires AccountProxy instead of AccountProxyInterface

1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading