public function getUser($username = null) { if ($username === null) { $user = Prado::createComponent($this->_userClass, $this); $user->setIsGuest(true); return $user; } else { return $this->_userFactory->createUser($username); } }