@@ 118-136 (lines=19) @@ | ||
115 | ||
116 | } |
|
117 | ||
118 | private function removeAuthProvider($io, $package_name, $provider, $configuration) { |
|
119 | ||
120 | try { |
|
121 | ||
122 | if ( !self::validateProvider($configuration) ) throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name); |
|
123 | ||
124 | $id = $this->getPackageInstaller()->authentication()->getByName($provider)->getId(); |
|
125 | ||
126 | $this->getPackageInstaller()->authentication()->delete($id); |
|
127 | ||
128 | $io->write(" <comment>-</comment> removed authentication provider ".$provider); |
|
129 | ||
130 | } catch (Exception $e) { |
|
131 | ||
132 | $io->write('<error>Error processing authentication provider: '.$e->getMessage().'</error>'); |
|
133 | ||
134 | } |
|
135 | ||
136 | } |
|
137 | ||
138 | private function updateAuthProvider($io, $package_name, $provider, $configuration) { |
|
139 |
@@ 114-132 (lines=19) @@ | ||
111 | ||
112 | } |
|
113 | ||
114 | private function removeSetting($io, $package_name, $setting, $value) { |
|
115 | ||
116 | try { |
|
117 | ||
118 | if ( !self::validateSetting($value) ) throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name); |
|
119 | ||
120 | $id = $this->getPackageInstaller()->settings()->getByName($setting)->getId(); |
|
121 | ||
122 | $this->getPackageInstaller()->settings()->delete($id); |
|
123 | ||
124 | $io->write(" <comment>-</comment> removed setting ".$setting); |
|
125 | ||
126 | } catch (Exception $e) { |
|
127 | ||
128 | $io->write('<error>Error processing setting: '.$e->getMessage().'</error>'); |
|
129 | ||
130 | } |
|
131 | ||
132 | } |
|
133 | ||
134 | private function updateSetting($io, $package_name, $setting, $old_value, $new_value) { |
|
135 |