| @@ 235-250 (lines=16) @@ | ||
| 232 | ||
| 233 | protected $contentTypeHandler; |
|
| 234 | ||
| 235 | protected function getContentTypeHandler() |
|
| 236 | { |
|
| 237 | if (!isset($this->contentTypeHandler)) { |
|
| 238 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 239 | new ContentTypeGateway( |
|
| 240 | $this->getDatabaseHandler(), |
|
| 241 | $this->getDatabaseConnection(), |
|
| 242 | $this->getLanguageMaskGenerator() |
|
| 243 | ), |
|
| 244 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 245 | $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Update\\Handler') |
|
| 246 | ); |
|
| 247 | } |
|
| 248 | ||
| 249 | return $this->contentTypeHandler; |
|
| 250 | } |
|
| 251 | ||
| 252 | protected function getConverterRegistry() |
|
| 253 | { |
|
| @@ 140-155 (lines=16) @@ | ||
| 137 | ||
| 138 | protected $contentTypeHandler; |
|
| 139 | ||
| 140 | protected function getContentTypeHandler() |
|
| 141 | { |
|
| 142 | if (!isset($this->contentTypeHandler)) { |
|
| 143 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 144 | new ContentTypeGateway( |
|
| 145 | $this->getDatabaseHandler(), |
|
| 146 | $this->getDatabaseConnection(), |
|
| 147 | $this->getLanguageMaskGenerator() |
|
| 148 | ), |
|
| 149 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 150 | $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Update\\Handler') |
|
| 151 | ); |
|
| 152 | } |
|
| 153 | ||
| 154 | return $this->contentTypeHandler; |
|
| 155 | } |
|
| 156 | ||
| 157 | protected $fieldRegistry; |
|
| 158 | ||
| @@ 208-223 (lines=16) @@ | ||
| 205 | ||
| 206 | protected $contentTypeHandler; |
|
| 207 | ||
| 208 | protected function getContentTypeHandler() |
|
| 209 | { |
|
| 210 | if (!isset($this->contentTypeHandler)) { |
|
| 211 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 212 | new ContentTypeGateway( |
|
| 213 | $this->getDatabaseHandler(), |
|
| 214 | $this->getDatabaseConnection(), |
|
| 215 | $this->getLanguageMaskGenerator() |
|
| 216 | ), |
|
| 217 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 218 | $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Update\\Handler') |
|
| 219 | ); |
|
| 220 | } |
|
| 221 | ||
| 222 | return $this->contentTypeHandler; |
|
| 223 | } |
|
| 224 | ||
| 225 | protected $fieldRegistry; |
|
| 226 | ||