/**
  * Handle the command
  *
  * @param PostLoader     $loader
  * @param PostContent    $content
  * @param PostResponse   $response
  * @param PostAuthorizer $authorizer
  */
 public function handle(PostLoader $loader, PostContent $content, PostResponse $response, PostAuthorizer $authorizer)
 {
     $authorizer->authorize($this->post);
     $loader->load($this->post);
     $content->make($this->post);
     $response->make($this->post);
 }
 /**
  * Handle the command
  *
  * @param PostAssets   $asset
  * @param PostLoader   $loader
  * @param PostContent  $content
  * @param PostResponse $response
  */
 public function handle(PostAssets $asset, PostLoader $loader, PostContent $content, PostResponse $response)
 {
     $loader->load($this->post);
     $asset->add($this->post);
     $content->make($this->post);
     $response->make($this->post);
 }
 /**
  * Show an existing post.
  *
  * @param PostRepositoryInterface    $posts
  * @param Request                    $request
  * @param SettingRepositoryInterface $settings
  * @return \Illuminate\View\View
  */
 public function show()
 {
     if (!($post = $this->resolver->resolve())) {
         abort(404);
     }
     $this->authorizer->authorize($post);
     $this->loader->load($post);
     $this->response->make($post);
     $this->http->cache($post);
     $this->dispatch(new AddPostsBreadcrumb());
     if ($category = $post->getCategory()) {
         $this->dispatch(new AddCategoryBreadcrumb($category));
     }
     $this->dispatch(new AddPostBreadcrumb($post));
     return view('anomaly.module.posts::posts/post', compact('post'));
 }