PHP 클래스 REBELinBLUE\Deployer\Http\Controllers\Admin\TemplateController

상속: extends REBELinBLUE\Deployer\Http\Controllers\Resources\ResourceController
파일 보기 프로젝트 열기: rebelinblue/deployer

보호된 프로퍼티들

프로퍼티 타입 설명
$repository REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface The command repository.

공개 메소드들

메소드 설명
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface $commandRepository, REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface $templateRepository ) TemplateController constructor.
index ( ) : Illuminate\View\View Shows all templates.
listing ( integer $target_id, integer $action ) : Illuminate\View\View Display a listing of before/after commands for the supplied stage.
show ( integer $template_id ) : Illuminate\View\View Show the template configuration.
store ( StoreTemplateRequest $request ) : Model Store a newly created template in storage.
update ( integer $template_id, StoreTemplateRequest $request ) : Model Update the specified template in storage.

메소드 상세

__construct() 공개 메소드

TemplateController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface $commandRepository, REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface $templateRepository )
$commandRepository REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface
$templateRepository REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface

index() 공개 메소드

Shows all templates.
public index ( ) : Illuminate\View\View
리턴 Illuminate\View\View

listing() 공개 메소드

Display a listing of before/after commands for the supplied stage.
public listing ( integer $target_id, integer $action ) : Illuminate\View\View
$target_id integer
$action integer
리턴 Illuminate\View\View

show() 공개 메소드

Show the template configuration.
public show ( integer $template_id ) : Illuminate\View\View
$template_id integer
리턴 Illuminate\View\View

store() 공개 메소드

Store a newly created template in storage.
public store ( StoreTemplateRequest $request ) : Model
$request REBELinBLUE\Deployer\Http\Requests\StoreTemplateRequest
리턴 Illuminate\Database\Eloquent\Model

update() 공개 메소드

Update the specified template in storage.
public update ( integer $template_id, StoreTemplateRequest $request ) : Model
$template_id integer
$request REBELinBLUE\Deployer\Http\Requests\StoreTemplateRequest
리턴 Illuminate\Database\Eloquent\Model

프로퍼티 상세

$repository 보호되어 있는 프로퍼티

The command repository.
protected CommandRepositoryInterface,REBELinBLUE\Deployer\Contracts\Repositories $repository
리턴 REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface