Skip to content

Commit e97bfaa

Browse files
rdeutzwilsonge
authored andcommitted
[4.0] It was a diffenent factory (#21587)
* I was a diffenent factory * lowercase keyword
1 parent 7c02024 commit e97bfaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/src/Document/Document.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use Joomla\Application\AbstractWebApplication;
1414
use Joomla\CMS\Date\Date;
15-
use Joomla\CMS\Factory;
15+
use Joomla\CMS\Factory as CmsFactory;
1616
use Joomla\CMS\Log\Log;
1717
use Symfony\Component\WebLink\HttpHeaderSerializer;
1818

@@ -332,7 +332,7 @@ public static function getInstance($type = 'html', $attributes = array())
332332

333333
if (empty(self::$instances[$signature]))
334334
{
335-
self::$instances[$signature] = Factory::getContainer()->get(FactoryInterface::class)->createDocument($type, $attributes);
335+
self::$instances[$signature] = CmsFactory::getContainer()->get(FactoryInterface::class)->createDocument($type, $attributes);
336336
}
337337

338338
return self::$instances[$signature];
@@ -1283,7 +1283,7 @@ public function parse($params = array())
12831283
*/
12841284
public function render($cache = false, $params = array())
12851285
{
1286-
$app = Factory::getApplication();
1286+
$app = CmsFactory::getApplication();
12871287

12881288
if ($mdate = $this->getModifiedDate())
12891289
{
@@ -1369,7 +1369,7 @@ protected function preloadAssets()
13691369
// Check if the manager's provider has links, if so add the Link header
13701370
if ($links = $this->getPreloadManager()->getLinkProvider()->getLinks())
13711371
{
1372-
Factory::getApplication()->setHeader('Link', (new HttpHeaderSerializer)->serialize($links));
1372+
CmsFactory::getApplication()->setHeader('Link', (new HttpHeaderSerializer)->serialize($links));
13731373
}
13741374
}
13751375
}

0 commit comments

Comments
 (0)