References ApiLoader
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, $resourceNameCollectionFactory, `<a href="/docs/main/references/Metadata/Resource/Factory/ResourceMetadataCollectionFactoryInterface">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): null
    public import($resource, null|string $type)
    public resolve($resource, null|string $type): Symfony\Component\Config\Loader\LoaderInterface
}

Properties

resolver

Symfony\Component\Config\Loader\LoaderResolverInterface $resolver

env

string $env

Methods

__construct

public __construct(Symfony\Component\HttpKernel\KernelInterface $kernel, $resourceNameCollectionFactory, `<a href="/docs/main/references/Metadata/Resource/Factory/ResourceMetadataCollectionFactoryInterface">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
resourceNameCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface`
resourceMetadataFactory`ApiPlatform\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

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

Parameters

resource
typestring

Returns

bool

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop