You are here

public static function MainController::create in Bakery Single Sign-On System 8.2

When this controller is created, it will get the bakery.bakery_service.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: For getting Bakery service.

Return value

static

Overrides ControllerBase::create

File

src/Controller/MainController.php, line 56
Router call back functions for bakery SSO functions.

Class

MainController
Route callback functionlities.

Namespace

Drupal\bakery\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('bakery.kitchen'), $container
    ->get('database'));
}