Skip to content

Added doc for SiteAccessStamp - #3340

Open
mnocon wants to merge 6 commits into
4.6from
siteaccess-stamp
Open

Added doc for SiteAccessStamp#3340
mnocon wants to merge 6 commits into
4.6from
siteaccess-stamp

Conversation

@mnocon

@mnocon mnocon commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Documentation for ibexa/messenger#13

Turns out we didn't have the "send the message to the transport" covered - adding this as well.

One TODO left: add the missing link once PHP API reference is regenerated

mnocon added 2 commits August 4, 2026 11:23
* Described stamps for Ibexa Messenger

* Fixed typos

* Link to Symfony messages
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

@mnocon mnocon added the Wait with merge PRs that shouldn't be merged instantly label Aug 4, 2026
@mnocon
mnocon marked this pull request as ready for review August 4, 2026 14:05
Comment thread docs/infrastructure_and_maintenance/background_tasks.md Outdated

The stamp changes the configuration scope only.
It doesn't change the SiteAccess in the `Ibexa\Core\MVC\Symfony\SiteAccess\SiteAccessServiceInterface` service.
`SiteAccessServiceInterface::getCurrent()` always returns the SiteAccess that the worker process started with, for all messages.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Side note: Will be fixed in ibexa/core#798 / 6.0.

We could also make SiteAccessService to listen to CONFIG_SCOPE_CHANGE events in 5.x and react accordingly, and backport the stack feature from 6.0. In theory this is a bug (SiteAccessService::getCurrent() returning wrong site access), so we would not exactly break BC promise - but initially I thought we shouldn't.

@konradoboza @alongosz @ibexa/php-dev ?

Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
@github-actions

Copy link
Copy Markdown

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/background_tasks/src/Messenger/SomeMessageProvider.php


code_samples/background_tasks/src/Messenger/SomeMessageProvider.php

docs/infrastructure_and_maintenance/background_tasks.md@262:``` php hl_lines="12"
docs/infrastructure_and_maintenance/background_tasks.md@263:[[= include_file("code_samples/background_tasks/src/Messenger/SomeMessageProvider.php") =]]
docs/infrastructure_and_maintenance/background_tasks.md@264:```

The following line doesn't include file correctly: [[= include_file("code_samples/background_tasks/src/Messenger/SomeMessageProvider.php") =]]

Download colorized diff

@mnocon
mnocon requested a review from a team August 11, 2026 11:44
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team August 11, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs DOC review Wait with merge PRs that shouldn't be merged instantly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants