You are here

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

Class

ChildDeprecatedController

Namespace

Drupal\bakery\Controller

Code

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