FrozenintimeServiceProvider.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8.2 tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 4.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.1.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.2.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.3.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.5.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.6.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.7.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
- 3.8.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php
Namespace
Drupal\frozenintimeFile
tests/modules/frozenintime/src/FrozenintimeServiceProvider.phpView source
<?php
namespace Drupal\frozenintime;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
/**
* Modifies the time service.
*/
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');
}
}
Classes
Name | Description |
---|---|
FrozenintimeServiceProvider | Modifies the time service. |