Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RecursiveServiceDependencyException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | /** |
| 5 | * Exception thrown when trying to access a disabled service. |
| 6 | * |
| 7 | * @license GPL-2.0-or-later |
| 8 | * @file |
| 9 | */ |
| 10 | |
| 11 | namespace Wikimedia\Services; |
| 12 | |
| 13 | use Psr\Container\ContainerExceptionInterface; |
| 14 | use RuntimeException; |
| 15 | |
| 16 | /** |
| 17 | * Exception thrown when trying to instantiate a currently instantiating service. |
| 18 | * |
| 19 | * @since 2.0.0 |
| 20 | */ |
| 21 | class RecursiveServiceDependencyException extends RuntimeException |
| 22 | implements ContainerExceptionInterface { |
| 23 | |
| 24 | /** |
| 25 | * @param string $serviceName |
| 26 | */ |
| 27 | public function __construct( string $serviceName ) { |
| 28 | parent::__construct( "Recursive service instantiation: $serviceName" ); |
| 29 | } |
| 30 | |
| 31 | } |