PHP Class REBELinBLUE\Deployer\Http\Controllers\Admin\TemplateController

Inheritance: extends REBELinBLUE\Deployer\Http\Controllers\Resources\ResourceController
Show file Open project: rebelinblue/deployer

Protected Properties

Property Type Description
$repository REBELinBLUE\Deployer\Contracts\Repositories\CommandRepositoryInterface The command repository.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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

listing() public method

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
return Illuminate\View\View

show() public method

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

store() public method

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

update() public method

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

Property Details

$repository protected property

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