From ecd4e94e705646928660ccc455e2247d7ccd98c3 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Thu, 16 Jan 2014 19:11:14 +1100 Subject: [PATCH] Update namespaces --- Plugin.php | 15 ++++++++------- classes/AuthManager.php | 8 ++++---- components/RegisterForm.php | 4 ++-- components/ResetForm.php | 8 ++++---- components/SignInForm.php | 4 ++-- components/User.php | 26 +++++++++++++------------- components/registerform/default.htm | 4 ++-- controllers/Users.php | 8 ++++---- controllers/users/form_config.yaml | 2 +- controllers/users/list_config.yaml | 2 +- facades/Auth.php | 4 ++-- models/Throttle.php | 4 ++-- models/User.php | 6 +++--- updates/create_throttle_table.php | 2 +- updates/create_users_table.php | 2 +- 15 files changed, 50 insertions(+), 49 deletions(-) diff --git a/Plugin.php b/Plugin.php index 146eb711..2c53ef9a 100644 --- a/Plugin.php +++ b/Plugin.php @@ -1,7 +1,7 @@ -facade('Auth', 'Plugins\RainLab\User\Facades\Auth'); + $facade->facade('Auth', 'RainLab\User\Facades\Auth'); } public function registerComponents() { return [ - 'Plugins\RainLab\User\Components\RegisterForm' => 'userRegisterForm', - 'Plugins\RainLab\User\Components\SignInForm' => 'userSignInForm', - 'Plugins\RainLab\User\Components\ResetForm' => 'userResetForm', - 'Plugins\RainLab\User\Components\User' => 'user', + 'RainLab\User\Components\RegisterForm' => 'userRegisterForm', + 'RainLab\User\Components\SignInForm' => 'userSignInForm', + 'RainLab\User\Components\ResetForm' => 'userResetForm', + 'RainLab\User\Components\UpdateForm' => 'userUpdateForm', + 'RainLab\User\Components\User' => 'user', ]; } diff --git a/classes/AuthManager.php b/classes/AuthManager.php index e9b34028..8102cd6b 100644 --- a/classes/AuthManager.php +++ b/classes/AuthManager.php @@ -1,4 +1,4 @@ - 'Invalid activation code supplied']); } - public function getCode() + public function code() { $routeParameter = $this->property('code-param'); return $this->param($routeParameter); diff --git a/components/SignInForm.php b/components/SignInForm.php index 2dfdbedd..420a89e0 100644 --- a/components/SignInForm.php +++ b/components/SignInForm.php @@ -1,9 +1,9 @@ -
- - + +
diff --git a/controllers/Users.php b/controllers/Users.php index 825c04e7..8aafe63d 100644 --- a/controllers/Users.php +++ b/controllers/Users.php @@ -1,15 +1,15 @@ - ['Plugins\RainLab\User\Models\User', 'foreignKey' => 'user_id'] + 'user' => ['RainLab\User\Models\User', 'foreignKey' => 'user_id'] ]; } diff --git a/models/User.php b/models/User.php index 336b7cce..3e9d63c0 100644 --- a/models/User.php +++ b/models/User.php @@ -1,4 +1,4 @@ - ['Plugins\RainLab\User\Models\Group', 'table' => 'user_groups'] + // 'groups' => ['RainLab\User\Models\Group', 'table' => 'user_groups'] // ]; public $morphOne = [ - 'avatar' => ['Modules\System\Models\File', 'name' => 'attachment'] + 'avatar' => ['System\Models\File', 'name' => 'attachment'] ]; /** diff --git a/updates/create_throttle_table.php b/updates/create_throttle_table.php index 052b8de6..78a72d61 100644 --- a/updates/create_throttle_table.php +++ b/updates/create_throttle_table.php @@ -1,4 +1,4 @@ -