/** * @param Workspace $workspace * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException */ public function removeAction(Workspace $workspace) { $this->workspaceRepository->remove($workspace); $this->redirect('index'); }