@@ 88-98 (lines=11) @@ | ||
85 | } |
|
86 | ||
87 | try { |
|
88 | foreach ($problem->getSolutions() as $job) { |
|
89 | if ($job->getAction() === DependencyResolver\Job::ACTION_ENABLE) { |
|
90 | $this->packageManager->disable($job->getPackage()); |
|
91 | $output->writeln(sprintf('Package \'%s\' has been enabled.', $job->getPackage()->getName())); |
|
92 | ||
93 | } elseif ($job->getAction() === DependencyResolver\Job::ACTION_DISABLE) { |
|
94 | $this->packageManager->enable($job->getPackage()); |
|
95 | $output->writeln(sprintf('Package \'%s\' has been disabled.', $job->getPackage()->getName())); |
|
96 | ||
97 | } |
|
98 | } |
|
99 | ||
100 | $this->packageManager->disable($package); |
|
101 | $output->writeln(sprintf('Package \'%s\' has been disabled.', $input->getArgument('package'))); |
@@ 94-103 (lines=10) @@ | ||
91 | } |
|
92 | ||
93 | try { |
|
94 | foreach ($problem->getSolutions() as $job) { |
|
95 | if ($job->getAction() === DependencyResolver\Job::ACTION_ENABLE) { |
|
96 | $this->packageManager->enable($job->getPackage()); |
|
97 | $output->writeln(sprintf('Package \'%s\' has been enabled.', $job->getPackage()->getName())); |
|
98 | ||
99 | } elseif ($job->getAction() === DependencyResolver\Job::ACTION_DISABLE) { |
|
100 | $this->packageManager->disable($job->getPackage()); |
|
101 | $output->writeln(sprintf('Package \'%s\' has been disabled.', $job->getPackage()->getName())); |
|
102 | } |
|
103 | } |
|
104 | ||
105 | $this->packageManager->enable($package); |
|
106 |