/** * @param string $title * @return void * @Flow\Validate(argumentName="title", type="NotEmpty") * @Flow\Validate(argumentName="title", type="Label") */ public function createAssetCollectionAction($title) { $this->assetCollectionRepository->add(new AssetCollection($title)); $this->addFlashMessage('collectionHasBeenCreated', '', Message::SEVERITY_OK, [htmlspecialchars($title)]); $this->redirect('index'); }