mailpoet
/
vendor-prefixed
/
symfony
/
dependency-injection
/
Exception
/
ServiceCircularReferenceException.php
AutowiringFailedException.php
2 years ago
BadMethodCallException.php
4 years ago
EnvNotFoundException.php
4 years ago
EnvParameterException.php
2 years ago
ExceptionInterface.php
4 years ago
InvalidArgumentException.php
4 years ago
InvalidParameterTypeException.php
4 years ago
LogicException.php
4 years ago
OutOfBoundsException.php
4 years ago
ParameterCircularReferenceException.php
2 years ago
ParameterNotFoundException.php
2 years ago
RuntimeException.php
4 years ago
ServiceCircularReferenceException.php
2 years ago
ServiceNotFoundException.php
2 years ago
index.php
3 years ago
ServiceCircularReferenceException.php
23 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\DependencyInjection\Exception; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class ServiceCircularReferenceException extends RuntimeException |
| 5 | { |
| 6 | private $serviceId; |
| 7 | private $path; |
| 8 | public function __construct(string $serviceId, array $path, ?\Throwable $previous = null) |
| 9 | { |
| 10 | parent::__construct(\sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, \implode(' -> ', $path)), 0, $previous); |
| 11 | $this->serviceId = $serviceId; |
| 12 | $this->path = $path; |
| 13 | } |
| 14 | public function getServiceId() |
| 15 | { |
| 16 | return $this->serviceId; |
| 17 | } |
| 18 | public function getPath() |
| 19 | { |
| 20 | return $this->path; |
| 21 | } |
| 22 | } |
| 23 |