You are here

public function UserController::__construct in User Revision 8

Constructs a UserController object.

Parameters

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

File

src/Controller/UserController.php, line 41

Class

UserController
Returns responses for User revision routes.

Namespace

Drupal\user_revision\Controller

Code

public function __construct(DateFormatter $date_formatter, UserRevisionAccessCheck $accessCheck) {
  $this->dateFormatter = $date_formatter;
  $this->userRevisionAccessCheck = $accessCheck;
  $this
    ->entityTypeManager();
}