PHP Class Lemon\RestBundle\Request\Handler

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

Protected Properties

Property Type Description
$envelopeFactory Lemon\RestBundle\Object\Envelope\EnvelopeFactory
$logger Psr\Log\LoggerInterface
$managerFactory Lemon\RestBundle\Object\ManagerFactoryInterface
$negotiator Negotiation\FormatNegotiator
$serializer Lemon\RestBundle\Serializer\ConstructorFactory

Public Methods

Method Description
__construct ( Lemon\RestBundle\Object\ManagerFactoryInterface $managerFactory, EnvelopeFactory $envelopeFactory, ConstructorFactory $serializer, Negotiation\FormatNegotiator $negotiator, Psr\Log\LoggerInterface $logger = null )
handle ( Request $request, Response $response, string $resource, Closure $callback ) : Response
options ( Request $request, Response $response, $resource, $id = null )

Method Details

__construct() public method

public __construct ( Lemon\RestBundle\Object\ManagerFactoryInterface $managerFactory, EnvelopeFactory $envelopeFactory, ConstructorFactory $serializer, Negotiation\FormatNegotiator $negotiator, Psr\Log\LoggerInterface $logger = null )
$managerFactory Lemon\RestBundle\Object\ManagerFactoryInterface
$envelopeFactory Lemon\RestBundle\Object\Envelope\EnvelopeFactory
$serializer Lemon\RestBundle\Serializer\ConstructorFactory
$negotiator Negotiation\FormatNegotiator
$logger Psr\Log\LoggerInterface

handle() public method

public handle ( Request $request, Response $response, string $resource, Closure $callback ) : Response
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$resource string
$callback Closure
return Symfony\Component\HttpFoundation\Response

options() public method

public options ( Request $request, Response $response, $resource, $id = null )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

Property Details

$envelopeFactory protected_oe property

protected EnvelopeFactory,Lemon\RestBundle\Object\Envelope $envelopeFactory
return Lemon\RestBundle\Object\Envelope\EnvelopeFactory

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$managerFactory protected_oe property

protected ManagerFactoryInterface,Lemon\RestBundle\Object $managerFactory
return Lemon\RestBundle\Object\ManagerFactoryInterface

$negotiator protected_oe property

protected FormatNegotiator,Negotiation $negotiator
return Negotiation\FormatNegotiator

$serializer protected_oe property

protected ConstructorFactory,Lemon\RestBundle\Serializer $serializer
return Lemon\RestBundle\Serializer\ConstructorFactory