@@ 95-98 (lines=4) @@ | ||
92 | ||
93 | $prependConfig = []; |
|
94 | ||
95 | if (isset($configs['entity_class']) && !isset($configs['audit_log_class'])) { |
|
96 | @trigger_error('The "entity_class" option is deprecated since XiideaEasyAuditBundle 1.4.10. and will not be supported anymore in 2.0. Use "audit_log_class" instead.', E_USER_DEPRECATED); |
|
97 | $prependConfig['audit_log_class'] = $configs['entity_class']; |
|
98 | } |
|
99 | ||
100 | if (isset($configs['entity_event_resolver']) && !isset($configs['doctrine_event_resolver'])) { |
|
101 | @trigger_error('The "entity_event_resolver" option is deprecated since XiideaEasyAuditBundle 1.4.10. and will not be supported anymore in 2.0. Use "doctrine_event_resolver" instead.', E_USER_DEPRECATED); |
|
@@ 100-103 (lines=4) @@ | ||
97 | $prependConfig['audit_log_class'] = $configs['entity_class']; |
|
98 | } |
|
99 | ||
100 | if (isset($configs['entity_event_resolver']) && !isset($configs['doctrine_event_resolver'])) { |
|
101 | @trigger_error('The "entity_event_resolver" option is deprecated since XiideaEasyAuditBundle 1.4.10. and will not be supported anymore in 2.0. Use "doctrine_event_resolver" instead.', E_USER_DEPRECATED); |
|
102 | $prependConfig['doctrine_event_resolver'] = $configs['entity_event_resolver']; |
|
103 | } |
|
104 | ||
105 | if (isset($configs['doctrine_entities']) && !isset($configs['doctrine_objects'])) { |
|
106 | @trigger_error('The "doctrine_entities" option is deprecated since XiideaEasyAuditBundle 1.4.10. and will not be supported anymore in 2.0. Use "doctrine_objects" instead.', E_USER_DEPRECATED); |
|
@@ 105-108 (lines=4) @@ | ||
102 | $prependConfig['doctrine_event_resolver'] = $configs['entity_event_resolver']; |
|
103 | } |
|
104 | ||
105 | if (isset($configs['doctrine_entities']) && !isset($configs['doctrine_objects'])) { |
|
106 | @trigger_error('The "doctrine_entities" option is deprecated since XiideaEasyAuditBundle 1.4.10. and will not be supported anymore in 2.0. Use "doctrine_objects" instead.', E_USER_DEPRECATED); |
|
107 | $prependConfig['doctrine_objects'] = $configs['doctrine_entities']; |
|
108 | } |
|
109 | ||
110 | if (!empty($doctrineConfig) && !isset($configs['doctrine_event_resolver'])) { |
|
111 | $prependConfig['doctrine_event_resolver'] = 'xiidea.easy_audit.default_doctrine_event_resolver'; |