public function actionDefault($password) { if ($password === $this->context->parameters['webhook']['password']) { $this->builder->build(); } $this->terminate(); }
public function handleBuild() { try { $this->builder->build(); $this->flashMessage('Packages json built.', 'success'); } catch (RuntimeException $e) { $this->flashMessage('There was an error building packages.json: ' . $e->getMessage(), 'danger'); } $this->redirect('this'); }