Skip to content

Commit

Permalink
Merge pull request #80 from sitegeist/mficzel-patch-1
Browse files Browse the repository at this point in the history
BUGFIX; Do not access controller context from fusion anymore
  • Loading branch information
mficzel authored Nov 26, 2024
2 parents 9c69045 + 0e4d7f3 commit 362241f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Classes/FusionObjects/DummyImageSourceImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ public function getText(): ?string
*/
public function createHelper(): ?ImageSourceInterface
{
$uriBuilder = $this->runtime->getControllerContext()->getUriBuilder()->reset()->setCreateAbsoluteUri(true);
$baseUri = $uriBuilder->uriFor('image', [], 'DummyImage', 'Sitegeist.Kaleidoscope');

return new DummyImageSource(
$baseUri,
null,
$this->getTitle(),
$this->getAlt(),
$this->getBaseWidth(),
Expand Down

0 comments on commit 362241f

Please sign in to comment.