@@ -42,12 +42,56 @@ public function testConfigEnabledVars($var, $value)
4242 public function generatorConfigVars ()
4343 {
4444 $ exclude = Configuration::$ exclude ;
45+ $ defaultErrorMask = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR ;
46+
47+ $ default = [
48+ 'enable ' => true ,
49+ 'exclude ' => $ exclude ,
50+ 'rollbar ' => [
51+ 'access_token ' => '' ,
52+ 'agent_log_location ' => '%kernel.logs_dir%/rollbar.log ' ,
53+ 'base_api_url ' => 'https://api.rollbar.com/api/1/ ' ,
54+ 'branch ' => Configuration::BRANCH ,
55+ 'capture_error_stacktraces ' => true ,
56+ 'checkIgnore ' => null ,
57+ 'code_version ' => '' ,
58+ 'enable_utf8_sanitization ' => true ,
59+ 'environment ' => Configuration::ENVIRONMENT ,
60+ 'error_sample_rates ' => [],
61+ 'handler ' => Configuration::HANDLER_BLOCKING ,
62+ 'include_error_code_context ' => false ,
63+ 'include_exception_code_context ' => false ,
64+ 'included_errno ' => $ defaultErrorMask ,
65+ 'logger ' => null ,
66+ 'person ' => [],
67+ 'person_fn ' => null ,
68+ 'root ' => '%kernel.root_dir% ' ,
69+ 'scrub_fields ' => Configuration::$ scrubFieldsDefault ,
70+ 'shift_function ' => true ,
71+ 'timeout ' => 3 ,
72+ 'report_suppressed ' => false ,
73+ 'use_error_reporting ' => false ,
74+ 'proxy ' => null ,
75+ 'allow_exec ' => true ,
76+ 'endpoint ' => 'https://api.rollbar.com/api/1/ ' ,
77+ 'custom ' => [],
78+ 'exception_sample_rates ' => [],
79+ 'fluent_host ' => '127.0.0.1 ' ,
80+ 'fluent_port ' => 24224 ,
81+ 'fluent_tag ' => 'rollbar ' ,
82+ 'host ' => null ,
83+ 'scrub_whitelist ' => null ,
84+ 'send_message_trace ' => false ,
85+ 'include_raw_request_body ' => false ,
86+ 'local_vars_dump ' => false ,
87+ ],
88+ ];
4589
4690 return [
4791 ['symfony_rollbar.event_listener.exception_listener.class ' , ExceptionListener::class],
4892 ['symfony_rollbar.event_listener.error_listener.class ' , ErrorListener::class],
4993 ['symfony_rollbar.provider.rollbar_handler.class ' , RollbarHandler::class],
50- ['symfony_rollbar.config ' , [ ' enable ' => true , ' exclude ' => $ exclude ] ],
94+ ['symfony_rollbar.config ' , $ default ],
5195 ];
5296 }
5397
0 commit comments