* * 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:----o9zY/ZueQsDQ7oS+LcT6/JCh2rRlQ2deOFMsw4Noc1hZbzKx08a2oTRf+NO+hKUchuJKuxOqYuQvFcb2N1Q/wcfAKJWvRGt9MR1RSJLy/PwgHEREICORQq69kVtvsb5fr1Za4kpG0XXFVJNgOrdMqxeOfUWG2xYiNSE6lVcfYKnIjV0B2YhNB5OtrHFs9mhqBUD+GFoL+TBuuQvh8IaF/PWpUu8bkWAn27r5JDgVgWnHbIlYwKwF7j3UZISGlSlyNDNw1LZbVoCVAik7nLYmMvFAp7vvr7xY06AZIm5ZSblrwYrFVTSy4gob8Vmtm2WmgDrl//1KP2VDBA0AU1IIv5tJVi1s/j6LoFn1XDe5via9wmpTdSTUb2wEgNfLn8GlR1aqF+ylSijFOYc0TLs5n5NOHCqTMZycpBKfy8IBxeQ8anJsW1xAlL3XVUq/uLVmVTOIfdIokR3+YNg1TlGuWlmQ0laoXTbN7EIECaH0yZ3HcvzmJb1SjDSwxLkKofiitESpCXA7d8qVKBIkxMbtgo7qO/Hmw7edouDVkttzYTioN849wXIawzhg7XCrnyn9bt5B05xvSgmpuitMCTV9juzG5lkXE+Xy9chl0V7BHvfUAdhegMDK1mQSnmBu92bHiyDf9QrEbvLDjdjm0iJdgJGBJYXuB4Yak7+EEApZ8lQ=----ATTACHMENT:----Nzg1Njc0MTYwNzg2NzkwNSAzNzc2MDM0NTMwNTc2NDIwIDI2MTg3OTA0Mzc3ODMxNA==