From 31fe7fe57e16d8c01dcc8192cb92f45e09377dd2 Mon Sep 17 00:00:00 2001 From: Egorka Date: Fri, 19 Jul 2019 13:13:03 +0300 Subject: [PATCH] Console user controller service handler --- console/controllers/UserController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/console/controllers/UserController.php b/console/controllers/UserController.php index fdea534..0b54d06 100644 --- a/console/controllers/UserController.php +++ b/console/controllers/UserController.php @@ -16,12 +16,12 @@ use Yii; class UserController extends Controller { - private $_service; + private $service; public function __construct($id, $module, UserManageService $service, $config = []) { parent::__construct($id, $module, $config); - $this->_service = $service; + $this->service = $service; } public function actionAdd() @@ -38,7 +38,7 @@ class UserController extends Controller $form->role = $role; if ($form->validate()) { - $this->_service->create($form); + $this->service->create($form); $this->stdout('Done!' . PHP_EOL); return; @@ -59,7 +59,7 @@ class UserController extends Controller $form->role = 'admin'; if ($form->validate()) { - $this->_service->create($form); + $this->service->create($form); return; } }