File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,15 @@ public function initialize(array $config): void {
38
38
* emptiness. This needs to happen in communication layer to ensure
39
39
* this for all other layers.
40
40
*
41
- * Can be skipped for edge cases using `DataPreparation.notrim` Configure setting.
41
+ * Can be skipped for edge cases using
42
+ * - locally: beforeFilter() inside the specific controller
43
+ * - globally: `DataPreparation.notrim` Configure setting.
42
44
*
43
45
* @param \Cake\Event\EventInterface $event
44
46
* @return void
45
47
*/
46
48
public function startup (EventInterface $ event ) {
47
- if (Configure::read ('DataPreparation.notrim ' )) {
49
+ if ($ this -> getConfig ( ' notrim ' ) || Configure::read ('DataPreparation.notrim ' )) {
48
50
return ;
49
51
}
50
52
You can’t perform that action at this time.
0 commit comments