You are here

public static function MainDeprecatedController::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/MainDeprecatedController.php, line 53

Class

MainDeprecatedController

Namespace

Drupal\bakery\Controller

Code

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