BlogCommentContainer
class BlogCommentContainer
Class BlogCommentContainer is injected as alligator.blog.comment.event.container. This container is connecting BlogComment manager to other services
Methods
BlogCommentContainer constructor.
No description
No description
Find logged user, null if user not logged
Prepare blog comment for persisting. Set default fields and create reference for foreign entities
Prepare blog comment for merging. Dispatch alligator.blog.comment.edit.event event
Prepare blog comment for removing. Dispatch alligator.blog.comment.delete.event
Details
at line 33
__construct(ContainerInterface $container)
BlogCommentContainer constructor.
at line 41
ContainerInterface
getContainer()
at line 50
BlogPostContainer
getBlogPostContainer()
at line 59
User|null
getLoggedUser()
Find logged user, null if user not logged
at line 74
void
setIfItsLoggedUser(BlogComment $blogComment)
Set user to blog comment if has logged user
at line 87
prepareSaveBlogComment(BlogComment $blogComment, BlogPostContainer $blogPostContainer)
Prepare blog comment for persisting. Set default fields and create reference for foreign entities
at line 101
prepareForEditComment(BlogComment $blogComment)
Prepare blog comment for merging. Dispatch alligator.blog.comment.edit.event event
at line 111
prepareForDeleteComment(BlogComment $blogComment, BlogPostContainer $blogPostContainer)
Prepare blog comment for removing. Dispatch alligator.blog.comment.delete.event