|
@@ 102-113 (lines=12) @@
|
| 99 |
|
return $this->get('friendly.http.http_content_type_guesser'); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
protected function get($service) |
| 103 |
|
{ |
| 104 |
|
if ($this->container->has($service)) { |
| 105 |
|
return $this->container->get($service); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
if (null !== $this->getKernel() && $this->getKernel()->getContainer()->has($service)) { |
| 109 |
|
return $this->getKernel()->getContainer()->get($service); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
throw new ServiceNotFoundException($service); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
protected function getParameter($name) |
| 116 |
|
{ |
|
@@ 115-126 (lines=12) @@
|
| 112 |
|
throw new ServiceNotFoundException($service); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
protected function getParameter($name) |
| 116 |
|
{ |
| 117 |
|
if ($this->container->hasParameter($name)) { |
| 118 |
|
return $this->container->getParameter($name); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
if (null !== $this->getKernel() && $this->getKernel()->getContainer()->hasParameter($name)) { |
| 122 |
|
return $this->getKernel()->getContainer()->getParameter($name); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
throw new ParameterNotFoundException($name); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
protected function getKernel() |
| 129 |
|
{ |