PHP 클래스 REBELinBLUE\Deployer\Http\Controllers\WebhookController

상속: extends Controller
파일 보기 프로젝트 열기: rebelinblue/deployer

공개 메소드들

메소드 설명
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository, REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface $deploymentRepository ) WebhookController constructor.
refresh ( integer $project_id ) : Illuminate\View\View Generates a new webhook URL.
webhook ( Illuminate\Http\Request $request, string $hash ) : Illuminate\View\View Handles incoming requests to trigger deploy.

비공개 메소드들

메소드 설명
appendProjectSettings ( array $payload, Illuminate\Http\Request $request, Project $project ) : array | false Takes the data returned from the webhook request and then adds deployers own data, such as project ID and runs any checks such as checks the branch is allowed to be deployed.
parseWebhookRequest ( Illuminate\Http\Request $request, Project $project ) : array | false Goes through the various webhook integrations as checks if the request is for them and parses it.

메소드 상세

__construct() 공개 메소드

WebhookController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository, REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface $deploymentRepository )
$projectRepository REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface
$deploymentRepository REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface

refresh() 공개 메소드

Generates a new webhook URL.
public refresh ( integer $project_id ) : Illuminate\View\View
$project_id integer
리턴 Illuminate\View\View

webhook() 공개 메소드

Handles incoming requests to trigger deploy.
public webhook ( Illuminate\Http\Request $request, string $hash ) : Illuminate\View\View
$request Illuminate\Http\Request
$hash string The webhook hash
리턴 Illuminate\View\View