Enhance Service locator

This commit is contained in:
Eric Espie
2026-01-27 11:54:05 +01:00
parent 390b5c0bc3
commit bfa7a209d6
43 changed files with 338 additions and 210 deletions

View File

@@ -0,0 +1,22 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Service\ServiceLocator;
use Exception;
use IssueLog;
use Psr\Container\ContainerExceptionInterface;
use Throwable;
class ServiceLocatorException extends Exception implements ContainerExceptionInterface
{
public function __construct(string $sMessage = '', ?Throwable $oPrevious = null, array $aContext = [])
{
parent::__construct($sMessage, 0, $oPrevious);
IssueLog::Exception(get_class($this).' occurs: '.$sMessage, $this, null, $aContext);
}
}