adding some information and legal stuff

This commit is contained in:
Ferdinand Kuhl 2024-11-28 17:25:02 +01:00
parent 831b715608
commit 4b3b048754
3 changed files with 43 additions and 0 deletions

19
LICENSE Normal file
View file

@ -0,0 +1,19 @@
Copyright (c) 2024 Ferdinand Kuhl <f.kuhl@digital-competence.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

19
README.md Normal file
View file

@ -0,0 +1,19 @@
# DigiComp.FlowMaintenanceMode
This package assists in presenting each visitor of your system a page showing working on maintenance.
It allows you to use usual error page rendering for that purpose - the idea is, that those layouts, should exist anyway.
If you want to bypass the maintenance mode, you can do so by configuring a cookie based exception:
```yaml
DigiComp:
FlowMaintenanceMode:
allowCookie:
name: name
value: value
```
That would allow you to bypass the maintenance answer, if you had a cookie named 'name' with a value of 'value'. If you set 'value' to `null` only the name is matched.
You can extend the exception behavior, by implementing the `AllowModuleInterface` and add it to `DigiComp.FlowMaintenanceMode.allowModules`. This list handled by positional array sorter. You can use position keys to order them, or set their value to null to exclude them from being used.

View file

@ -11,10 +11,15 @@
"DigiComp\\FlowMaintenanceMode\\": "Classes" "DigiComp\\FlowMaintenanceMode\\": "Classes"
} }
}, },
"homepage": "https://git.digital-competence.de/Packages/DigiComp.FlowMaintenanceMode",
"license": "MIT",
"extra": { "extra": {
"neos": { "neos": {
"package-key": "DigiComp.FlowMaintenanceMode" "package-key": "DigiComp.FlowMaintenanceMode"
}, },
"branch-alias": {
"dev-develop": "1.0.x-dev"
},
"applied-flow-migrations": [ "applied-flow-migrations": [
] ]
} }