src/MamuzBlog/Controller/PostQueryController.php
public function publishedPostsAction()
    {
        $this->routeParam()->mapPageTo($this->queryService);

        if ($tag = $this->params()->fromRoute('tag')) {
            $collection = $this->queryService->findPublishedPostsByTag($tag);
        } else {
            $collection = $this->queryService->findPublishedPosts();
        }

        return $this->viewModelFactory()->createFor($collection);
    }
public function publishedPostsAction()
    {
        $this->routeParam()->mapPageTo($this->queryService);

        if ($tag = $this->params()->fromRoute('tag')) {
            $collection = $this->queryService->findPublishedPostsByTag($tag);
        } else {
            $collection = $this->queryService->findPublishedPosts();
        }

        return $this->viewModelFactory()->createFor($collection);
    }
public function publishedPostsAction ( ) { $ this -> routeParam ( ) -> mapPageTo ( $ this -> queryService ) ; if ( $ tag = $ this -> params ( ) -> fromRoute ( 'tag' ) ) { $ collection = $ this -> queryService -> findPublishedPostsByTag ( $ tag ) ; } else { $ collection = $ this -> queryService -> findPublishedPosts ( ) ; } return $ this -> viewModelFactory ( ) -> createFor ( $ collection ) ; }
Published post entries retrieval

@return ModelInterface
Published post entries retrieval