You are here

public static function RedirectOnAccessDeniedSubscriber::create in Opigno dashboard 8

Same name and namespace in other branches
  1. 3.x src/EventSubscriber/RedirectOnAccessDeniedSubscriber.php \Drupal\opigno_dashboard\EventSubscriber\RedirectOnAccessDeniedSubscriber::create()

File

src/EventSubscriber/RedirectOnAccessDeniedSubscriber.php, line 37

Class

RedirectOnAccessDeniedSubscriber
Class RedirectOnAccessDeniedSubscriber.

Namespace

Drupal\opigno_dashboard\EventSubscriber

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('current_user'));
}