* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Exception; use Psr\Container\NotFoundExceptionInterface; /** * This exception is thrown when a non-existent service is requested. * * @author Johannes M. Schmitt */ class ServiceNotFoundException extends InvalidArgumentException implements NotFoundExceptionInterface { private $id; private $sourceId; private $alternatives; public function __construct($id, $sourceId = null, \Exception $previous = null, array $alternatives = array(), $msg = null) { if (null !== $msg) { // no-op } elseif (null === $sourceId) { $msg = sprintf('You have requested a non-existent service "%s".', $id); } else { $msg = sprintf('The service "%s" has a dependency on a non-existent service "%s".', $sourceId, $id); } if ($alternatives) { if (1 == count($alternatives)) { $msg .= ' Did you mean this: "'; } else { $msg .= ' Did you mean one of these: "'; } $msg .= implode('", "', $alternatives).'"?'; } parent::__construct($msg, 0, $previous); $this->id = $id; $this->sourceId = $sourceId; $this->alternatives = $alternatives; } public function getId() { return $this->id; } public function getSourceId() { return $this->sourceId; } public function getAlternatives() { return $this->alternatives; } } __halt_compiler();----SIGNATURE:----HCqZHxFFpbxEX2XFT5nrPcWGPDM6gxKDRnW0STQVfbmLyyoMg6WG2CZ4TVP4VolQOomAhBsZfb5lxOfEpXGJCo9wV///nwORTIOg68k5Zcfc1IwQ8O7zpN6yeTbireM9tbEYBoEziDiW580wycGLf1X+frgOcbpydBdi2Pv4XIqxVnwO/0Co/A0oTUQ/s2+d2MS9DhZPccfDtuskjPpJaYnjzo+sJhM4f2AaT2jegS5eSnrUuOQxIc3jvpXrJjsghrw4KbQ8is9Fr1gqC0W8cc3LBhjB73k2JPz1U7ZH+IwP+ZIWZ5JDTydh/phv3w+VGsVKtrlg+WHCCb19EGLr3hhkV+CwiT39e6SdO3Bhc/lt+n5/KWeYEBhSOuPiyWkUoz1d6xlLhi1LiXN0KyA+UfN6e4Dw5+BpDOvugIJ99nMOWiXgfodvLEEBCRlxy5/N36UtSJ/Z9AwVIm4erQ/myrijH/fLRpTlMvsFlWoeODSmOmfnntP8m7OJWGFeibj8GWDWSfAIv/fGeEoD+nlFfeKInRSm591HXJ/BB1edwAzK2xRdhonvMfCqJ6BUxC45CRtA18WiqnhF4y33Mzo1wVOn8xJvgmhgJX/K+csSCoK1A7qwjbohG5VtynfbjmT2dwV3NUSGtGFaaVddajSmVwsm7CNUOSGeHTcJzoC/WUc=----ATTACHMENT:----NTQzNzk2NzY5MjczMjM2MiAzNTI1NTQwNzExODA4MDE2IDQzOTUxNTQzMzkwMTczMjM=