Created command to generate a new api key

This commit is contained in:
Alejandro Celaya
2016-08-06 18:07:48 +02:00
parent 99d7e6dd7d
commit 74777c2234
7 changed files with 130 additions and 0 deletions

View File

@@ -124,4 +124,14 @@ class ApiKey extends AbstractEntity
{
return $this->isEnabled() && ! $this->isExpired();
}
/**
* The string repesentation of an API key is the key itself
*
* @return string
*/
public function __toString()
{
return $this->getKey();
}
}