Reference
C
Class

ApiPlatform\Symfony\Routing\ApiLoader

Loads Resources.

class ApiPlatform\Symfony\Routing\ApiLoader extends Symfony\Component\Config\Loader\Loader implements Symfony\Component\Config\Loader\LoaderInterface
{
    public __construct(Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats, array $resourceClassDirectories, bool $graphqlEnabled, bool $entrypointEnabled, bool $docsEnabled, bool $graphiQlEnabled, bool $graphQlPlaygroundEnabled)
    public load($data, null|string $type): Symfony\Component\Routing\RouteCollection
    public supports($resource, null|string $type): bool
    public getResolver(): Symfony\Component\Config\Loader\LoaderResolverInterface
    public setResolver(Symfony\Component\Config\Loader\LoaderResolverInterface $resolver)
    public import($resource, null|string $type)
    public resolve($resource, null|string $type): Symfony\Component\Config\Loader\LoaderInterface
}
class ApiPlatform\Symfony\Routing\ApiLoader extends Symfony\Component\Config\Loader\Loader implements Symfony\Component\Config\Loader\LoaderInterface
{
    public __construct(Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats, array $resourceClassDirectories, bool $graphqlEnabled, bool $entrypointEnabled, bool $docsEnabled, bool $graphiQlEnabled, bool $graphQlPlaygroundEnabled)
    public load($data, null|string $type): Symfony\Component\Routing\RouteCollection
    public supports($resource, null|string $type): bool
    public getResolver(): Symfony\Component\Config\Loader\LoaderResolverInterface
    public setResolver(Symfony\Component\Config\Loader\LoaderResolverInterface $resolver)
    public import($resource, null|string $type)
    public resolve($resource, null|string $type): Symfony\Component\Config\Loader\LoaderInterface
}

Properties

resolver

$resolver
$resolver

env

$env
$env

Methods

__construct

public __construct(Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats, array $resourceClassDirectories, bool $graphqlEnabled, bool $entrypointEnabled, bool $docsEnabled, bool $graphiQlEnabled, bool $graphQlPlaygroundEnabled)
public __construct(Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats, array $resourceClassDirectories, bool $graphqlEnabled, bool $entrypointEnabled, bool $docsEnabled, bool $graphiQlEnabled, bool $graphQlPlaygroundEnabled)

Parameters

kernelSymfony\Component\HttpKernel\KernelInterface
resourceNameCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface
resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
containerSymfony\Component\DependencyInjection\ContainerInterface
formatsarray
resourceClassDirectoriesarray
graphqlEnabledbool
entrypointEnabledbool
docsEnabledbool
graphiQlEnabledbool
graphQlPlaygroundEnabledbool

load

Loads a resource.Loads a resource.

public load($data, null|string $type): Symfony\Component\Routing\RouteCollection
public load($data, null|string $type): Symfony\Component\Routing\RouteCollection

Parameters

data
typestring

Returns

Symfony\Component\Routing\RouteCollection

supports

Returns whether this class supports the given resource.Returns whether this class supports the given resource.

public supports($resource, null|string $type): bool
public supports($resource, null|string $type): bool

Parameters

resource
typestring

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop