class CompilerScssServiceProvider in SCSS Compiler 1.0.x
Registers the appropriate compiler backend service.
Copyright (C) 2021 Library Solutions, LLC (et al.).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@internal
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\compiler_scss\CompilerScssServiceProvider
Expanded class hierarchy of CompilerScssServiceProvider
File
- src/
CompilerScssServiceProvider.php, line 22
Namespace
Drupal\compiler_scssView source
class CompilerScssServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
// For now, the only supported backend is scssphp.
$container
->register('compiler_scss.backend', ScssPhp::class);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CompilerScssServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |
5 |