public static function ChildController::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/ ChildController.php, line 47
Class
Namespace
Drupal\bakery\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container
->get('bakery.bakery_service'), $container
->get('bakery.kitchen'));
}