Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: 3334 Resource targets without space tunnels #3445

Draft
wants to merge 2 commits into
base: 9.0
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

wip resolves: #3334

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

{
$this->initialize();

/** @var TargetInterface $target */
$target = $this->collections[self::DEFAULT_STATIC_COLLECTION_NAME]->getTarget();
if ($target instanceof AbsoluteBaseUriAwareTarget) {
$target->setAbsoluteBaseUri($baseUri ?? $this->baseUriProvider->getConfiguredBaseUriOrFallbackToCurrentRequest());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically absoluteBaseUri is not fully correct, as the api would also allow passing an empty uri: new Uri('')

Now the value returned by getConfiguredBaseUriOrFallbackToCurrentRequest is likely just the plain host but might also contain the dir of the request path $SCRIPT_NAME.
That would fit with the description of absolute uri.

Now as soon as Neos.Flow.http.baseUri is not null even an empty string would be returned which does NOT fit again into idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Dynamic resource uri host (baseUri) for CLI
1 participant