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
}
Symfony\Component\Config\Loader\LoaderResolverInterface $resolver
string $env
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)
kernel | Symfony\Component\HttpKernel\KernelInterface | |
resourceNameCollectionFactory | `ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface` | |
resourceMetadataFactory | `ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface` | |
container | Symfony\Component\DependencyInjection\ContainerInterface | |
formats | array | |
resourceClassDirectories | array | |
graphqlEnabled | bool | |
entrypointEnabled | bool | |
docsEnabled | bool | |
graphiQlEnabled | bool | |
graphQlPlaygroundEnabled | bool |
Loads a resource.Loads a resource.
public load($data, null|string $type): Symfony\Component\Routing\RouteCollection
data | ||
type | string |
Symfony\Component\Routing\RouteCollection
Returns whether this class supports the given resource.Returns whether this class supports the given resource.
public supports($resource, null|string $type): bool
resource | ||
type | string |
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