You are here

public function SwaggerUiLibraryDiscovery::__construct in Swagger UI Field Formatter 8.3

Same name in this branch
  1. 8.3 src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscovery::__construct()
  2. 8.3 tests/modules/swagger_ui_formatter_test/src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter_test\Service\SwaggerUiLibraryDiscovery::__construct()

Constructs a SwaggerUiLibraryDiscovery instance.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache: The default cache bin.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager service.

\Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization: The theme initialization service.

File

src/Service/SwaggerUiLibraryDiscovery.php, line 79

Class

SwaggerUiLibraryDiscovery
Default Swagger UI library discovery service implementation.

Namespace

Drupal\swagger_ui_formatter\Service

Code

public function __construct(CacheBackendInterface $cache, ThemeHandlerInterface $theme_handler, ThemeManagerInterface $theme_manager, ThemeInitializationInterface $theme_initialization) {
  $this->cache = $cache;
  $this->themeHandler = $theme_handler;
  $this->themeManager = $theme_manager;
  $this->themeInitialization = $theme_initialization;
}