From 7bd9ed3d8e652c1a58cf160ef30975b13c23f528 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 15 Apr 2018 14:41:41 +0200 Subject: [PATCH] Renamed AccountComponent --- classes/components/{account.php => AccountComponent.php} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename classes/components/{account.php => AccountComponent.php} (97%) diff --git a/classes/components/account.php b/classes/components/AccountComponent.php similarity index 97% rename from classes/components/account.php rename to classes/components/AccountComponent.php index 5772c07..0665300 100644 --- a/classes/components/account.php +++ b/classes/components/AccountComponent.php @@ -5,7 +5,7 @@ * @author Pierre HUBERT */ -class Account { +class AccountComponent { /** * @var String $userTable The name of the user table @@ -39,7 +39,7 @@ class Account { $email, $this->cryptPassword($password) ); - $userInfos = CS::get()->db->select(Account::USER_TABLE, $conditions, $values); + $userInfos = CS::get()->db->select(self::USER_TABLE, $conditions, $values); //Check if there is anything if(count($userInfos) == 0) @@ -210,4 +210,4 @@ class Account { } //Register class -Components::register("account", new Account()); \ No newline at end of file +Components::register("account", new AccountComponent()); \ No newline at end of file