PHP Class Lemon\RestBundle\Controller\IndexController

显示文件 Open project: stanlemon/rest-bundle Class Usage Examples

Protected Properties

Property Type Description
$negotiator FormatNegotiatorInterface
$registry Lemon\RestBundle\Object\Registry
$router Symfony\Component\Routing\RouterInterface
$serializer JMS\Serializer\Serializer

Public Methods

Method Description
__construct ( Negotiation\FormatNegotiator $negotiator, JMS\Serializer\Serializer $serializer, Registry $registry, Symfony\Component\Routing\RouterInterface $router )
indexAction ( Request $request ) : Response

Method Details

__construct() public method

public __construct ( Negotiation\FormatNegotiator $negotiator, JMS\Serializer\Serializer $serializer, Registry $registry, Symfony\Component\Routing\RouterInterface $router )
$negotiator Negotiation\FormatNegotiator
$serializer JMS\Serializer\Serializer
$registry Lemon\RestBundle\Object\Registry
$router Symfony\Component\Routing\RouterInterface

indexAction() public method

public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

Property Details

$negotiator protected_oe property

protected FormatNegotiatorInterface $negotiator
return FormatNegotiatorInterface

$registry protected_oe property

protected Registry,Lemon\RestBundle\Object $registry
return Lemon\RestBundle\Object\Registry

$router protected_oe property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface

$serializer protected_oe property

protected Serializer,JMS\Serializer $serializer
return JMS\Serializer\Serializer