| @@ 32-44 (lines=13) @@ | ||
| 29 | ||
| 30 | class App extends AbstractAction { |
|
| 31 | ||
| 32 | public function install($package_name, $package_extra) { |
|
| 33 | ||
| 34 | $io = $this->getIO(); |
|
| 35 | ||
| 36 | $io->write("<info>>>> Installing apps from ".$package_name."</info>"); |
|
| 37 | ||
| 38 | foreach ($package_extra as $app => $configuration) { |
|
| 39 | ||
| 40 | $this->addApp($io, $package_name, $app, $configuration); |
|
| 41 | ||
| 42 | } |
|
| 43 | ||
| 44 | } |
|
| 45 | ||
| 46 | public function update($package_name, $initial_extra, $target_extra) { |
|
| 47 | ||
| @@ 82-94 (lines=13) @@ | ||
| 79 | ||
| 80 | } |
|
| 81 | ||
| 82 | public function uninstall($package_name, $package_extra) { |
|
| 83 | ||
| 84 | $io = $this->getIO(); |
|
| 85 | ||
| 86 | $io->write("<info>>>> Removing apps from ".$package_name."</info>"); |
|
| 87 | ||
| 88 | foreach ($package_extra as $app => $configuration) { |
|
| 89 | ||
| 90 | $this->removeApp($io, $package_name, $app, $configuration); |
|
| 91 | ||
| 92 | } |
|
| 93 | ||
| 94 | } |
|
| 95 | ||
| 96 | private function addApp($io, $package_name, $app, $configuration) { |
|
| 97 | ||
| @@ 32-44 (lines=13) @@ | ||
| 29 | ||
| 30 | class Authentication extends AbstractAction { |
|
| 31 | ||
| 32 | public function install($package_name, $package_extra) { |
|
| 33 | ||
| 34 | $io = $this->getIO(); |
|
| 35 | ||
| 36 | $io->write("<info>>>> Installing authentication providers from ".$package_name."</info>"); |
|
| 37 | ||
| 38 | foreach ($package_extra as $provider => $configuration) { |
|
| 39 | ||
| 40 | $this->addAuthProvider($io, $package_name, $provider, $configuration); |
|
| 41 | ||
| 42 | } |
|
| 43 | ||
| 44 | } |
|
| 45 | ||
| 46 | public function update($package_name, $initial_extra, $target_extra) { |
|
| 47 | ||
| @@ 82-94 (lines=13) @@ | ||
| 79 | ||
| 80 | } |
|
| 81 | ||
| 82 | public function uninstall($package_name, $package_extra) { |
|
| 83 | ||
| 84 | $io = $this->getIO(); |
|
| 85 | ||
| 86 | $io->write("<info>>>> Removing authentication providers from ".$package_name."</info>"); |
|
| 87 | ||
| 88 | foreach ($package_extra as $provider => $configuration) { |
|
| 89 | ||
| 90 | $this->removeAuthProvider($io, $package_name, $provider, $configuration); |
|
| 91 | ||
| 92 | } |
|
| 93 | ||
| 94 | } |
|
| 95 | ||
| 96 | private function addAuthProvider($io, $package_name, $provider, $configuration) { |
|
| 97 | ||