Пример #1
0
 protected function validatePostUpdateName($module, $postUpdateName)
 {
     if (!$this->validator->validateSpaces($postUpdateName)) {
         throw new \InvalidArgumentException(sprintf($this->trans('commands.generate.post.update.messages.wrong-post-update-name'), $postUpdateName));
     }
     if ($this->extensionManager->validateModuleFunctionExist($module, $module . '_post_update_' . $postUpdateName, $module . '.post_update.php')) {
         throw new \InvalidArgumentException(sprintf($this->trans('commands.generate.post.update.messages.post-update-name-already-implemented'), $postUpdateName));
     }
 }