/**
* Method called after content creation.
*
* Useful, if additional stuff should be executed (like creating the actual
* user).
*
* @param Legacy\Handler $handler
* @param Content $content
*/
public function postCreationHook(Legacy\Handler $handler, Content $content)
{
$user = new User();
$user->id = $content->versionInfo->contentInfo->id;
$user->login = '******';
$user->email = '*****@*****.**';
$user->passwordHash = '*';
$user->hashAlgorithm = 0;
$user->isEnabled = true;
$user->maxLogin = 1000;
$userHandler = $handler->userHandler();
$userHandler->create($user);
}