Skip to content

Commit fcb2481

Browse files
committed
Use RequestInformationHelper, not BaseUriProvider
1 parent 26f1836 commit fcb2481

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Classes/Controller/PostController.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Neos\ContentRepository\Domain\Service\NodeTypeManager;
1818
use Neos\ContentRepository\Exception\NodeException;
1919
use Neos\Flow\Annotations as Flow;
20-
use Neos\Flow\Http\BaseUriProvider;
2120
use Neos\Flow\Http\Component\SetHeaderComponent;
21+
use Neos\Flow\Http\Helper\RequestInformationHelper;
2222
use Neos\Flow\I18n\Service;
2323
use Neos\Flow\Mvc\Controller\ActionController;
2424
use Neos\Flow\Mvc\Routing\Exception\MissingActionNameException;
@@ -35,12 +35,6 @@
3535
*/
3636
class PostController extends ActionController
3737
{
38-
/**
39-
* @Flow\Inject
40-
* @var BaseUriProvider
41-
*/
42-
protected $baseUriProvider;
43-
4438
/**
4539
* @Flow\Inject
4640
* @var NodeTypeManager
@@ -97,7 +91,7 @@ public function rssAction(): string
9791
$channel->setTitle($feedTitle);
9892
$channel->setDescription($feedDescription);
9993
$channel->setFeedUri($feedUri);
100-
$channel->setWebsiteUri($this->baseUriProvider->getConfiguredBaseUriOrFallbackToCurrentRequest());
94+
$channel->setWebsiteUri((string)RequestInformationHelper::generateBaseUri($this->request->getHttpRequest()));
10195
$channel->setLanguage((string)$this->i18nService->getConfiguration()->getCurrentLocale());
10296

10397
/* @var $postNode NodeInterface */

0 commit comments

Comments
 (0)