/**
  * Handle the command.
  *
  * @param ResponseFactory $response
  */
 public function handle(ResponseFactory $response)
 {
     $table = $this->builder->getTable();
     $options = $table->getOptions();
     $data = $table->getData();
     $table->setResponse($response->view($options->get('wrapper_view', $this->builder->isAjax() ? 'streams::ajax' : 'streams::blank'), $data));
 }
 /**
  * Handle the command.
  *
  * @param ResponseFactory $response
  */
 public function handle(ResponseFactory $response)
 {
     $tree = $this->builder->getTree();
     $options = $tree->getOptions();
     $data = $tree->getData();
     $tree->setResponse($response->view($options->get('wrapper_view', 'streams::blank'), $data));
 }
Пример #3
0
 /**
  * Return a new view response from the application.
  *
  * @param string $view
  * @param array $data
  * @param int $status
  * @param array $headers
  * @return \Illuminate\Http\Response 
  * @static 
  */
 public static function view($view, $data = array(), $status = 200, $headers = array())
 {
     return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
 }
 /**
  * Handle the command.
  *
  * @param ResponseFactory $response
  */
 public function handle(ResponseFactory $response)
 {
     $options = $this->builder->getFormOptions();
     $data = $this->builder->getFormData();
     $this->builder->setFormResponse($response->view($options->get('wrapper_view'), $data));
 }
 /**
  * Show a single press release
  *
  * In order to be compatible with the old press releases module the year, month, and day are passed.
  * But here is the secret... They don't matter. Only the slug matters
  *
  * @param PressReleaseRepositoryInterface $repo
  * @param                                 $year
  * @param                                 $month
  * @param                                 $day
  * @param                                 $slug
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function show(PressReleaseRepositoryInterface $repo, $year, $month, $day, $slug)
 {
     $press_release = $repo->getBySlug($slug);
     return $this->response->view('control_4.module.press_releases::show', compact('press_release'));
 }
Пример #6
0
 public function handle(ResponseFactory $factory)
 {
     return $factory->view($this->template, $this->data, $this->status, $this->headers);
 }