2021-08-26 15:19:06 +02:00
|
|
|
DigiComp.FlowSessionLock
|
|
|
|
------------------------
|
|
|
|
|
2022-08-30 14:46:03 +02:00
|
|
|
![Build status](https://ci.digital-competence.de/api/badges/Packages/DigiComp.FlowSessionLock/status.svg)
|
|
|
|
|
2022-04-20 17:36:30 +02:00
|
|
|
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.
|
2021-08-26 15:19:06 +02:00
|
|
|
|
2022-04-20 17:36:30 +02:00
|
|
|
If you want to allow concurrent access somewhere, you can add your trigger pointcut in `Settings.yaml` like such:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
DigiComp:
|
|
|
|
FlowSessionLock:
|
|
|
|
readOnlyExpressions:
|
|
|
|
MyLock: "method(My\\Package\\Controller\\MyController->myAction())"
|
|
|
|
```
|