Created
January 10, 2013 14:18
-
-
Save dragoonis/4502321 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $name The Service Name | |
* @param bool $usePeeringServiceManagers | |
* @return array|object | |
* @throws \Exception | |
*/ | |
public function get($name, $usePeeringServiceManagers = true) | |
{ | |
try { | |
return parent::get($name, $usePeeringServiceManagers); | |
} catch(\Exception $e) { | |
do { | |
$last = $e; | |
} while ($e = $e->getPrevious()); | |
throw new \Exception($last->getMessage()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment