File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
src/CoreBundle/Migrations/Schema/V200 Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -123,20 +123,7 @@ private function buildDefaultsFromSchemas(): array
123123 {
124124 $ map = [];
125125
126- $ manager = null ;
127-
128- try {
129- if ($ this ->container ->has ('chamilo.settings_manager ' )) {
130- $ manager = $ this ->container ->get ('chamilo.settings_manager ' );
131- } elseif ($ this ->container ->has ('chamilo.core.settings_manager ' )) {
132- $ manager = $ this ->container ->get ('chamilo.core.settings_manager ' );
133- } elseif ($ this ->container ->has (SettingsManager::class)) {
134- $ manager = $ this ->container ->get (SettingsManager::class);
135- }
136- } catch (Throwable $ e ) {
137- error_log ('[WARN] Unable to retrieve SettingsManager from container: ' .$ e ->getMessage ());
138- }
139-
126+ $ manager = $ this ->container ->get (SettingsManager::class);
140127 if (!$ manager ) {
141128 error_log ('[WARN] SettingsManager not found; defaults map will be empty. ' );
142129
You can’t perform that action at this time.
0 commit comments