| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function get($id) |
||
| 32 | { |
||
| 33 | // First, let's test if there is a parameter (parameters and services are the same thing in container/interop) |
||
| 34 | if ($this->container->hasParameter($id)) { |
||
| 35 | return $this->container->getParameter($id); |
||
| 36 | } |
||
| 37 | try { |
||
| 38 | return $this->container->get($id); |
||
| 39 | } catch (SymfonyNotFoundException $prev) { |
||
| 40 | throw BridgeNotFoundException::fromPrevious($id, $prev); |
||
| 41 | } catch (\Exception $prev) { |
||
| 42 | throw BridgeContainerException::fromPrevious($id, $prev); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 51 |