/** * Remove a package * * @return array|\Zend\Http\Response array(package, name) or redirect response */ public function removepackageAction() { if ($this->getRequest()->isPost()) { if ($this->params()->fromPost('yes')) { $this->_currentGroup->removePackage($this->params()->fromQuery('package')); } return $this->redirectToRoute('group', 'packages', array('name' => $this->params()->fromQuery('name'))); } else { return array('package' => $this->params()->fromQuery('package')); } }