function JsAssetController::create

Same name in other branches
  1. 11.x core/modules/system/src/Controller/JsAssetController.php \Drupal\system\Controller\JsAssetController::create()

Overrides AutowireTrait::create

File

core/modules/system/src/Controller/JsAssetController.php, line 31

Class

JsAssetController
Defines a controller to serve Javascript aggregates.

Namespace

Drupal\system\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('stream_wrapper_manager'), $container->get('library.dependency_resolver'), $container->get('asset.resolver'), $container->get('theme.initialization'), $container->get('theme.manager'), $container->get('asset.js.collection_grouper'), $container->get('asset.js.collection_optimizer'), $container->get('asset.js.dumper'));
}

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