function CssAssetController::create

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

Overrides AutowireTrait::create

File

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

Class

CssAssetController
Defines a controller to serve CSS 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.css.collection_grouper'), $container->get('asset.css.collection_optimizer'), $container->get('asset.css.dumper'));
}

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