PHP 클래스 console\controllers\InitAdminController

Below are some common usages of this command: ~~~ # init root user yii init-admin # init root user yii init-admin --username=root --password=qwerty ~~~
저자: Taras Makitra ([email protected])
상속: extends yii\console\Controller
파일 보기 프로젝트 열기: yeesoft/yii2-yee-cms

공개 프로퍼티들

프로퍼티 타입 설명
$allowOverwrite indicate whether is root user initialization allowed more that one time.
$db the DB connection object or the application component ID of the DB connection.
$defaultAction the default command action.
$email email of root user.
$interactive whether to execute the migration in an interactive mode.
$password password of root user.
$username username of root user.

공개 메소드들

메소드 설명
actionInit ( ) Init root user.
beforeAction ( Action $action ) : boolean This method is invoked right before an action is to be executed (after all possible filters.)
options ( $actionId )

비공개 메소드들

메소드 설명
canUpdateRootUser ( )
createUser ( $username, $password, $email )
validateEmail ( $email )
validatePassword ( $password )
validateUsername ( $username )

메소드 상세

actionInit() 공개 메소드

For example, ~~~ yii init-admin yii init-admin --username=admin --password=admin123 ~~~
public actionInit ( )

beforeAction() 공개 메소드

This method is invoked right before an action is to be executed (after all possible filters.)
public beforeAction ( Action $action ) : boolean
$action yii\base\Action the action to be executed.
리턴 boolean whether the action should continue to be executed.

options() 공개 메소드

public options ( $actionId )

프로퍼티 상세

$allowOverwrite 공개적으로 프로퍼티

indicate whether is root user initialization allowed more that one time.
public $allowOverwrite

$db 공개적으로 프로퍼티

the DB connection object or the application component ID of the DB connection.
public $db

$defaultAction 공개적으로 프로퍼티

the default command action.
public $defaultAction

$email 공개적으로 프로퍼티

email of root user.
public $email

$interactive 공개적으로 프로퍼티

whether to execute the migration in an interactive mode.
public $interactive

$password 공개적으로 프로퍼티

password of root user.
public $password

$username 공개적으로 프로퍼티

username of root user.
public $username