예제 #1
0
 public function actionDefault($password)
 {
     if ($password === $this->context->parameters['webhook']['password']) {
         $this->builder->build();
     }
     $this->terminate();
 }
예제 #2
0
 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');
 }