| @@ 105-111 (lines=7) @@ | ||
| 102 | * |
|
| 103 | * @return mixed |
|
| 104 | */ |
|
| 105 | public function getConnection($name = null) |
|
| 106 | { |
|
| 107 | $this->serviceContext = static::CONNECTION_CONTEXT; |
|
| 108 | $result = parent::getConnection($name); |
|
| 109 | $this->serviceContext = null; |
|
| 110 | return $result; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * {@inheritdoc} |
|
| @@ 116-122 (lines=7) @@ | ||
| 113 | /** |
|
| 114 | * {@inheritdoc} |
|
| 115 | */ |
|
| 116 | public function getConnections() |
|
| 117 | { |
|
| 118 | $this->serviceContext = static::CONNECTION_CONTEXT; |
|
| 119 | $result = parent::getConnections(); |
|
| 120 | $this->serviceContext = null; |
|
| 121 | return $result; |
|
| 122 | } |
|
| 123 | ||
| 124 | ||
| 125 | /** |
|
| @@ 128-134 (lines=7) @@ | ||
| 125 | /** |
|
| 126 | * {@inheritdoc} |
|
| 127 | */ |
|
| 128 | public function getManager($name = null) |
|
| 129 | { |
|
| 130 | $this->serviceContext = static::OBJECT_MANAGER_CONTEXT; |
|
| 131 | $result = parent::getManager($name); |
|
| 132 | $this->serviceContext = null; |
|
| 133 | return $result; |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * {@inheritdoc} |
|
| @@ 139-145 (lines=7) @@ | ||
| 136 | /** |
|
| 137 | * {@inheritdoc} |
|
| 138 | */ |
|
| 139 | public function getManagerForClass($class) |
|
| 140 | { |
|
| 141 | $this->serviceContext = static::OBJECT_MANAGER_CONTEXT; |
|
| 142 | $result = parent::getManagerForClass($class); |
|
| 143 | $this->serviceContext = null; |
|
| 144 | return $result; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| @@ 150-156 (lines=7) @@ | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| 149 | */ |
|
| 150 | public function getManagers() |
|
| 151 | { |
|
| 152 | $this->serviceContext = static::OBJECT_MANAGER_CONTEXT; |
|
| 153 | $result = parent::getManagers(); |
|
| 154 | $this->serviceContext = null; |
|
| 155 | return $result; |
|
| 156 | } |
|
| 157 | ||
| 158 | ||
| 159 | /** |
|