Added command for creating admin users on console

This commit is contained in:
franck
2013-08-28 14:23:50 +02:00
parent 38c2dc319a
commit 07849aa614
5 changed files with 122 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class Admin extends BaseAdmin implements UserInterface
\Thelia\Log\Tlog::getInstance()->debug($password);
if ($this->isNew() && ($password === null || trim($password) == "")) {
throw new InvalidArgumentException("customer password is mandatory on creation");
throw new \InvalidArgumentException("customer password is mandatory on creation");
}
if($password !== null && trim($password) != "") {