Reference
C
Class

ApiPlatform\State\CallableProvider

class ApiPlatform\State\CallableProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
    public __construct(Psr\Container\ContainerInterface $locator)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object|array
}
class ApiPlatform\State\CallableProvider implements `<a href="/docs/reference/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>`
{
    public __construct(Psr\Container\ContainerInterface $locator)
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object|array
}

Methods

__construct

public __construct(Psr\Container\ContainerInterface $locator)
public __construct(Psr\Container\ContainerInterface $locator)

Parameters

locatorPsr\Container\ContainerInterface

provide

Provides data.

public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object|array
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): object|array

Parameters

operationApiPlatform\Metadata\Operation
uriVariablesarray
contextarray

Returns

object
array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop