You are here

class FrozenintimeServiceProvider in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  2. 3.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  3. 3.1.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  4. 3.2.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  5. 3.3.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  6. 3.4.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  7. 3.5.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  8. 3.6.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  9. 3.7.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
  10. 3.8.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider

Modifies the time service.

Hierarchy

Expanded class hierarchy of FrozenintimeServiceProvider

File

tests/modules/frozenintime/src/FrozenintimeServiceProvider.php, line 11

Namespace

Drupal\frozenintime
View source
class FrozenintimeServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {

    // Overrides language_manager class to test domain language negotiation.
    $definition = $container
      ->getDefinition('datetime.time');
    $definition
      ->setClass('Drupal\\frozenintime\\FrozenTime');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrozenintimeServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1