PHP Class Flarum\Api\Controller\ShowPostController

Inheritance: extends AbstractResourceController
ファイルを表示 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_oe property

public $include

$posts protected_oe property

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

$serializer public_oe property

public $serializer