PHP Class Flarum\Api\Controller\ShowPostController

Inheritance: extends AbstractResourceController
Show file Open project: flarum/core

Public Properties

Property Type Description
$include
$serializer

Protected Properties

Property Type Description
$posts Flarum\Core\Repository\PostRepository

Public Methods

Method Description
__construct ( PostRepository $posts )

Protected Methods

Method Description
data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )

Method Details

__construct() public method

public __construct ( PostRepository $posts )
$posts Flarum\Core\Repository\PostRepository

data() protected method

protected data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )
$request Psr\Http\Message\ServerRequestInterface
$document Tobscure\JsonApi\Document

Property Details

$include public property

public $include

$posts protected property

protected PostRepository,Flarum\Core\Repository $posts
return Flarum\Core\Repository\PostRepository

$serializer public property

public $serializer