| @@ 81-97 (lines=17) @@ | ||
| 78 | */ |
|
| 79 | private $authenticationService; |
|
| 80 | ||
| 81 | public function __construct( |
|
| 82 | PostService $postService, |
|
| 83 | FlashMessageServiceInterface $flashMessageService, |
|
| 84 | UrlGeneratorInterface $urlGenerator, |
|
| 85 | TemplateEngineInterface $templateEngine, |
|
| 86 | ResponseFactoryInterface $responseFactory, |
|
| 87 | FormFactoryInterface $formFactory, |
|
| 88 | AuthenticationServiceInterface $authenticationService |
|
| 89 | ) { |
|
| 90 | $this->postService = $postService; |
|
| 91 | $this->flashMessageService = $flashMessageService; |
|
| 92 | $this->urlGenerator = $urlGenerator; |
|
| 93 | $this->templateEngine = $templateEngine; |
|
| 94 | $this->responseFactory = $responseFactory; |
|
| 95 | $this->formFactory = $formFactory; |
|
| 96 | $this->authenticationService = $authenticationService; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Lists all Post entities. |
|
| @@ 73-89 (lines=17) @@ | ||
| 70 | */ |
|
| 71 | private $authenticationService; |
|
| 72 | ||
| 73 | public function __construct( |
|
| 74 | CommentService $commentService, |
|
| 75 | TemplateEngineInterface $templateEngine, |
|
| 76 | ResponseFactoryInterface $responseFactory, |
|
| 77 | FormFactoryInterface $formFactory, |
|
| 78 | PostRepositoryInterface $postRepository, |
|
| 79 | AuthorizationServiceInterface $authorizationService, |
|
| 80 | AuthenticationServiceInterface $authenticationService |
|
| 81 | ) { |
|
| 82 | $this->commentService = $commentService; |
|
| 83 | $this->templateEngine = $templateEngine; |
|
| 84 | $this->responseFactory = $responseFactory; |
|
| 85 | $this->formFactory = $formFactory; |
|
| 86 | $this->postRepository = $postRepository; |
|
| 87 | $this->authorizationService = $authorizationService; |
|
| 88 | $this->authenticationService = $authenticationService; |
|
| 89 | } |
|
| 90 | ||
| 91 | public function post(ServerRequestInterface $request): ResponseInterface |
|
| 92 | { |
|