function ConfigController::create

Same name in other branches
  1. 9 core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::create()
  2. 10 core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::create()
  3. 11.x core/modules/config/src/Controller/ConfigController.php \Drupal\config\Controller\ConfigController::create()

Overrides ContainerInjectionInterface::create

File

core/modules/config/src/Controller/ConfigController.php, line 83

Class

ConfigController
Returns responses for config module routes.

Namespace

Drupal\config\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('config.storage'), $container->get('config.storage.sync'), $container->get('config.manager'), FileDownloadController::create($container), $container->get('diff.formatter'), $container->get('file_system'), $container->get('config.storage.export'), $container->get('config.import_transformer'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.