ServiceContainerServiceProvider.php in Service Container 7.2
Same filename in this branch
- 7.2 src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
- 7.2 tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
- 7.2 tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Same filename and directory in other branches
Contains \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider.
File
tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.phpView source
<?php
/**
* @file
* Contains \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider.
*/
namespace Drupal\service_container_test\ServiceContainer\ServiceProvider;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\KeyValueStore\KeyValueExpirableFactory;
use Drupal\service_container\DependencyInjection\ServiceProviderInterface;
/**
* Overrides some specific services/parameters for tests purposes.
*/
class ServiceContainerServiceProvider implements ServiceProviderInterface {
/**
* {@inheritdoc}
*/
public function getContainerDefinition() {
return variable_get('service_container_test_definition', array());
}
/**
* {@inheritdoc}
*/
public function alterContainerDefinition(&$container_definition) {
return;
}
}
Classes
Name | Description |
---|---|
ServiceContainerServiceProvider | Overrides some specific services/parameters for tests purposes. |