Reference
C
Class

ApiPlatform\Symfony\Bundle\DataCollector\RequestDataCollector

class ApiPlatform\Symfony\Bundle\DataCollector\RequestDataCollector extends Symfony\Component\HttpKernel\DataCollector\DataCollector implements Symfony\Contracts\Service\ResetInterface, Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $metadataFactory, Psr\Container\ContainerInterface $filterLocator)
    public collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, null|Throwable $exception): null
    public getVersion(): string
    public getName(): string
    public getData(): Symfony\Component\VarDumper\Cloner\Data|array
    public getAcceptableContentTypes(): array
    public getRequestAttributes(): array
    public getResources(): array
    public reset(): null
    protected cloneVar($var): Symfony\Component\VarDumper\Cloner\Data
    protected getCasters(): array<int, callable>
    public __sleep(): array
    public __wakeup()
    protected serialize()
    protected unserialize(string $data)
}
class ApiPlatform\Symfony\Bundle\DataCollector\RequestDataCollector extends Symfony\Component\HttpKernel\DataCollector\DataCollector implements Symfony\Contracts\Service\ResetInterface, Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $metadataFactory, Psr\Container\ContainerInterface $filterLocator)
    public collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, null|Throwable $exception): null
    public getVersion(): string
    public getName(): string
    public getData(): Symfony\Component\VarDumper\Cloner\Data|array
    public getAcceptableContentTypes(): array
    public getRequestAttributes(): array
    public getResources(): array
    public reset(): null
    protected cloneVar($var): Symfony\Component\VarDumper\Cloner\Data
    protected getCasters(): array<int, callable>
    public __sleep(): array
    public __wakeup()
    protected serialize()
    protected unserialize(string $data)
}

Properties

data

array|Symfony\Component\VarDumper\Cloner\Data $data
array|Symfony\Component\VarDumper\Cloner\Data $data

Methods

__construct

public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $metadataFactory, Psr\Container\ContainerInterface $filterLocator)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $metadataFactory, Psr\Container\ContainerInterface $filterLocator)

Parameters

metadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
filterLocatorPsr\Container\ContainerInterface

collect

Collects data for the given Request and Response.Collects data for the given Request and Response.

public collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, null|Throwable $exception): null
public collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, null|Throwable $exception): null

Parameters

requestSymfony\Component\HttpFoundation\Request
responseSymfony\Component\HttpFoundation\Response
exceptionThrowable

Returns

null

getVersion

public getVersion(): string
public getVersion(): string

Returns

string

getName

Returns the name of the collector.Returns the name of the collector.

public getName(): string
public getName(): string

Returns

string

getData

public getData(): Symfony\Component\VarDumper\Cloner\Data|array
public getData(): Symfony\Component\VarDumper\Cloner\Data|array

Returns

Symfony\Component\VarDumper\Cloner\Data
array

getAcceptableContentTypes

public getAcceptableContentTypes(): array
public getAcceptableContentTypes(): array

Returns

array

getRequestAttributes

public getRequestAttributes(): array
public getRequestAttributes(): array

Returns

array

getResources

public getResources(): array
public getResources(): array

Returns

array

reset

public reset(): null
public reset(): null

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop