PHP Class Lemon\RestBundle\Request\Handler

Afficher le fichier Open project: stanlemon/rest-bundle Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat Symfony\Component\HttpFoundation\Response

options() public méthode

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
Résultat Lemon\RestBundle\Object\Envelope\EnvelopeFactory

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$managerFactory protected_oe property

protected ManagerFactoryInterface,Lemon\RestBundle\Object $managerFactory
Résultat Lemon\RestBundle\Object\ManagerFactoryInterface

$negotiator protected_oe property

protected FormatNegotiator,Negotiation $negotiator
Résultat Negotiation\FormatNegotiator

$serializer protected_oe property

protected ConstructorFactory,Lemon\RestBundle\Serializer $serializer
Résultat Lemon\RestBundle\Serializer\ConstructorFactory