public function undeploy($target, array $options = array()) { $this->assertTargetExists($target, $this->getConfig()->getConfig()); $this->setConfigParametersForTarget($target); /** @var \Webcreate\Conveyor\Task\TaskRunner $trUndeploy */ $transporter = $this->getTransporter($target); $io = $this->getIO(); $trUndeploy = $this->container->get('undeploy.taskrunner'); $strategy = $this->getStrategy($transporter); $trUndeploy->setTransporter($transporter); $context = new Context(); $context->setTarget($target)->setStrategy($strategy)->setVersion(new Version()); $manager = new StageManager($context, $this->container->get('dispatcher')); $manager->addStage('undeploy', new Stage\UndeployStage($trUndeploy, $transporter, $io))->execute(); }