You are here

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

Expanded class hierarchy of CompilerScssServiceProvider

File

src/CompilerScssServiceProvider.php, line 22

Namespace

Drupal\compiler_scss
View 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

Namesort descending Modifiers Type Description Overrides
CompilerScssServiceProvider::register public function Registers services to the container. Overrides ServiceProviderBase::register
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 5