revised code
This commit is contained in:
parent
e7ca78f855
commit
f784fb3d3f
1 changed files with 12 additions and 9 deletions
19
README.md
19
README.md
|
@ -1,13 +1,16 @@
|
||||||
DigiComp.FlowSessionLock
|
DigiComp.FlowSessionLock
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
By default the session established by Flow is not "protected" in any way.
|
By default, the session established by Flow is not "protected" in any way. This package restricts every request to load
|
||||||
This package restricts every request to load the session only, if there are no other requests having it in access currently.
|
the session only, if there are no other requests having it in access currently. It allows to set custom pointcut which
|
||||||
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.
|
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:
|
If you want to allow concurrent access somewhere, you can add your trigger pointcut in `Settings.yaml` like such:
|
||||||
|
|
||||||
DigiComp:
|
```yaml
|
||||||
FlowSessionLock:
|
DigiComp:
|
||||||
readOnlyExpressions:
|
FlowSessionLock:
|
||||||
'AcmeLock': 'method(Acme/SuperPackage/Controller/ConcurrentController->concurrentAction())'
|
readOnlyExpressions:
|
||||||
|
MyLock: "method(My\\Package\\Controller\\MyController->myAction())"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue