You are here

public function CompilerScssServiceProvider::register in SCSS Compiler 1.0.x

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderBase::register

File

src/CompilerScssServiceProvider.php, line 27

Class

CompilerScssServiceProvider
Registers the appropriate compiler backend service.

Namespace

Drupal\compiler_scss

Code

public function register(ContainerBuilder $container) {

  // For now, the only supported backend is scssphp.
  $container
    ->register('compiler_scss.backend', ScssPhp::class);
}