public function __construct($service_id, array $path) { parent::__construct(sprintf('Circular reference detected "%s", path: "%s".', $service_id, implode(' -> ', $path))); $this->service_id = $service_id; $this->path = $path; }
public function __construct(CompositeInterface $node, $msg = '', $code = 0, \Exception $previous = null) { $this->node = $node; parent::__construct($msg, $code, $previous); }