Closed ctgraham closed 5 years ago
Should I use PHP define or [cakePHP configuration]? (https://book.cakephp.org/3.0/en/development/configuration.html#bootstrapping-cakephp) Can I put move those parameters into config/Bootstrap.php?
These should be done in the cake configuration (config/app.php or an additional included file).
https://book.cakephp.org/3.0/en/development/configuration.html
Configuration parameters which are not secure should be set so that the application will work out-of-the-box:
For example, the constants for Managers
and Scanners
should be 1
and 2
.
updated in commit 1df1cdad92bd5e2f8d65ebc78cf69398c2bf644c and 9ff36da3560810ed92e0f16b618f653f60ec710c
Resolved.
Any configuration should be part of the config/app.php.
For example: https://github.com/ulsdevteam/lcsu/blob/fd1e3dc5a1307831f0275fafc29c4aa746a60f90/src/Utility/PhpNetworkLprPrinter.php#L21
https://github.com/ulsdevteam/lcsu/blob/fd1e3dc5a1307831f0275fafc29c4aa746a60f90/src/Utility/PhpNetworkLprPrinter.php#L84
Also: https://github.com/ulsdevteam/lcsu/blob/fd1e3dc5a1307831f0275fafc29c4aa746a60f90/src/Auth/EnvAuthenticate.php#L97 or, remove the option documentation: https://github.com/ulsdevteam/lcsu/blob/fd1e3dc5a1307831f0275fafc29c4aa746a60f90/src/Auth/EnvAuthenticate.php#L45-L58
For any expected configuration in app.php (since it is not captured in version control), add sample configuration in config/app.default.php