class TestService
Same name in this branch
- 10 core/modules/system/tests/modules/decorated_service_test/src/TestService.php \Drupal\decorated_service_test\TestService
- 10 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService
Same name in other branches
- 9 core/modules/system/tests/modules/decorated_service_test/src/TestService.php \Drupal\decorated_service_test\TestService
- 9 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService
- 9 core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService
- 11.x core/modules/system/tests/modules/decorated_service_test/src/TestService.php \Drupal\decorated_service_test\TestService
- 11.x core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService
- 11.x core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService
Hierarchy
- class \Drupal\autowire_test\TestService
Expanded class hierarchy of TestService
1 file declares its use of TestService
- AutowireTest.php in core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ AutowireTest.php
File
-
core/
modules/ system/ tests/ modules/ autowire_test/ src/ TestService.php, line 8
Namespace
Drupal\autowire_testView source
class TestService {
/**
* @var \Drupal\autowire_test\TestInjectionInterface
*/
protected $testInjection;
/**
* @var \Drupal\autowire_test\TestInjection2
*/
protected $testInjection2;
/**
* The database connection.
*/
protected $database;
/**
* The Drupal kernel.
*/
protected $kernel;
public function __construct(TestInjectionInterface $test_injection, TestInjection2 $test_injection2, Connection $database, DrupalKernelInterface $kernel, TestInjectionInterface $testInjection3) {
$this->testInjection = $test_injection;
$this->testInjection2 = $test_injection2;
$this->database = $database;
$this->kernel = $kernel;
}
public function getTestInjection() : TestInjectionInterface {
return $this->testInjection;
}
public function getTestInjection2() : TestInjection2 {
return $this->testInjection2;
}
public function getTestInjection3() : TestInjection3 {
return $this->testInjection3;
}
public function getDatabase() : Connection {
return $this->database;
}
public function getKernel() : DrupalKernelInterface {
return $this->kernel;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestService::$database | protected | property | The database connection. |
TestService::$kernel | protected | property | The Drupal kernel. |
TestService::$testInjection | protected | property | |
TestService::$testInjection2 | protected | property | |
TestService::getDatabase | public | function | |
TestService::getKernel | public | function | |
TestService::getTestInjection | public | function | |
TestService::getTestInjection2 | public | function | |
TestService::getTestInjection3 | public | function | |
TestService::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.