|
12 | 12 |
|
13 | 13 | use Joomla\Application\AbstractWebApplication; |
14 | 14 | use Joomla\CMS\Date\Date; |
15 | | -use Joomla\CMS\Factory; |
| 15 | +use Joomla\CMS\Factory as CmsFactory; |
16 | 16 | use Joomla\CMS\Log\Log; |
17 | 17 | use Symfony\Component\WebLink\HttpHeaderSerializer; |
18 | 18 |
|
@@ -332,7 +332,7 @@ public static function getInstance($type = 'html', $attributes = array()) |
332 | 332 |
|
333 | 333 | if (empty(self::$instances[$signature])) |
334 | 334 | { |
335 | | - self::$instances[$signature] = Factory::getContainer()->get(FactoryInterface::class)->createDocument($type, $attributes); |
| 335 | + self::$instances[$signature] = CmsFactory::getContainer()->get(FactoryInterface::class)->createDocument($type, $attributes); |
336 | 336 | } |
337 | 337 |
|
338 | 338 | return self::$instances[$signature]; |
@@ -1283,7 +1283,7 @@ public function parse($params = array()) |
1283 | 1283 | */ |
1284 | 1284 | public function render($cache = false, $params = array()) |
1285 | 1285 | { |
1286 | | - $app = Factory::getApplication(); |
| 1286 | + $app = CmsFactory::getApplication(); |
1287 | 1287 |
|
1288 | 1288 | if ($mdate = $this->getModifiedDate()) |
1289 | 1289 | { |
@@ -1369,7 +1369,7 @@ protected function preloadAssets() |
1369 | 1369 | // Check if the manager's provider has links, if so add the Link header |
1370 | 1370 | if ($links = $this->getPreloadManager()->getLinkProvider()->getLinks()) |
1371 | 1371 | { |
1372 | | - Factory::getApplication()->setHeader('Link', (new HttpHeaderSerializer)->serialize($links)); |
| 1372 | + CmsFactory::getApplication()->setHeader('Link', (new HttpHeaderSerializer)->serialize($links)); |
1373 | 1373 | } |
1374 | 1374 | } |
1375 | 1375 | } |
0 commit comments