chameleon-system-private/symfony-customization-bundle
Offers customization for symfony framework settings.
Requires
- symfony/symfony: ^4.4
- 7.1.x-dev
- 7.1.138
- 7.1.137
- 7.1.136
- 7.1.135
- 7.1.134
- 7.1.133
- 7.1.132
- 7.1.131
- 7.1.130
- 7.1.129
- 7.1.128
- 7.1.127
- 7.1.126
- 7.1.125
- 7.1.124
- 7.1.123
- 7.1.122
- 7.1.121
- 7.1.120
- 7.1.119
- 7.1.118
- 7.1.117
- 7.1.116
- 7.1.115
- 7.1.114
- 7.1.113
- 7.1.112
- 7.1.111
- 7.1.110
- 7.1.109
- 7.1.108
- 7.1.36
- 7.0.22
- dev-65797-paypal-checkout-7.1.x
- dev-65797-paypal-button-integration
- dev-main
- dev-64817-update-tag-manager-bundle
- dev-64992-campaign-tracking-bundle
README
This bundle is intended for symfony customization.
Currently, it supports the following features:
- DebugHandler log level customization
Installation
First, add the bundle to your packages:\
$>composer require chameleon-system/symfony-customization-bundle
After that, you need to load the bundle in your app kernel:\
new \ChameleonSystem\SymfonyCustomizationBundle\ChameleonSystemSymfonyCustomizationBundle()
Now you are set to go.
Features
DebugHandler log level customization
By default, the symfony (v4.4) debug handler will log everything (\E_ALL), including all the "annoying" DEPRECATED
entries like
[2023-11-30 14:41:23] php.INFO: Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated ...
[2023-11-30 14:41:23] php.INFO: Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated ...
With this bundle, this will change to ignore DEPRECATED php messages (\E_DEPRECATED, \E_USER_DEPRECATED) by default.
If you want to change this behaviour for your needs you can achieve this by creating a configuration setup (e.g.
in config.yml) by adding the following
chameleon_system_symfony_customization:
debug_handler_log_level: 8191
If no configuration is made, or you want to override it (for e.g. temporary situations), you may just add the setting to your parameters like
parameters:
chameleon_system_symfony_customization.debug_handler_log_level: 8191
The number value is a bit mask based on the error levels like (see php core):
- E_ERROR: 1
- E_DEPRECATED: 8192
- E_USER_DEPRECATED: 16384
- E_ALL: 32767
- ...