No description
Find a file
2021-08-26 15:19:43 +02:00
Classes First working version 2021-08-26 15:05:37 +02:00
Configuration First working version 2021-08-26 15:05:37 +02:00
composer.json Adding meta information 2021-08-26 15:12:56 +02:00
README.md Adding small explanation 2021-08-26 15:19:06 +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:
      'AcmeLock': 'method(Acme/SuperPackage/Controller/ConcurrentController->concurrentAction())'