No description
Find a file
Ferdinand Kuhl 9f7dab7513
Some checks failed
ci/woodpecker/push/code-style Pipeline failed
Allow phpcodesniffer composer installer scripts in CI
2022-08-01 00:37:15 +02:00
.woodpecker Allow phpcodesniffer composer installer scripts in CI 2022-08-01 00:37:15 +02:00
Classes PHPCBF fixes 2022-07-31 23:51:35 +02:00
Configuration [WIP] migrates SessionLockRequestComponent to new MiddlewareInterface 2022-05-19 11:53:26 +02:00
Tests/Functional note about broken functional tests 2022-08-01 00:17:55 +02:00
composer.json Merge branch 'version/2.x-dev' into develop 2022-08-01 00:31:07 +02:00
README.md revised code 2022-04-20 17:36:30 +02:00

DigiComp.FlowSessionLock

By default, the session established by Flow is not "protected" in any way. This package restricts every request to load the session only, if there are no other requests having it in access currently. It allows to set custom pointcut which will set the session in "ReadOnly" mode, which allows concurrent requests to read, but disallows the current request to write the session.

If you want to allow concurrent access somewhere, you can add your trigger pointcut in Settings.yaml like such:

DigiComp:
  FlowSessionLock:
    readOnlyExpressions:
      MyLock: "method(My\\Package\\Controller\\MyController->myAction())"