@@ 92-112 (lines=21) @@ | ||
89 | ||
90 | } |
|
91 | ||
92 | private function packageInstall($package) { |
|
93 | ||
94 | $actions_map = Parser::parse($package); |
|
95 | ||
96 | $package_name = $package->getPrettyName(); |
|
97 | ||
98 | $package_path = $this->composer->getInstallationManager()->getInstallPath($package); |
|
99 | ||
100 | $installer = $this->getPackageInstaller(); |
|
101 | ||
102 | foreach ($actions_map as $action_class => $extra) { |
|
103 | ||
104 | $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_class; |
|
105 | ||
106 | $action = new $action_fqcn($this->composer, $this->io, $package_path, $installer); |
|
107 | ||
108 | $action->install($package_name, $extra); |
|
109 | ||
110 | } |
|
111 | ||
112 | } |
|
113 | ||
114 | private function packageUninstall($package) { |
|
115 | ||
@@ 114-134 (lines=21) @@ | ||
111 | ||
112 | } |
|
113 | ||
114 | private function packageUninstall($package) { |
|
115 | ||
116 | $actions_map = Parser::parse($package); |
|
117 | ||
118 | $package_name = $package->getPrettyName(); |
|
119 | ||
120 | $package_path = $this->composer->getInstallationManager()->getInstallPath($package); |
|
121 | ||
122 | $installer = $this->getPackageInstaller(); |
|
123 | ||
124 | foreach ($actions_map as $action_class => $extra) { |
|
125 | ||
126 | $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_class; |
|
127 | ||
128 | $action = new $action_fqcn($this->composer, $this->io, $package_path, $installer); |
|
129 | ||
130 | $action->uninstall($package_name, $extra); |
|
131 | ||
132 | } |
|
133 | ||
134 | } |
|
135 | ||
136 | private function packageUpdate($initial, $target) { |
|
137 |