Guides
Tutorials
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
}
$resolver
$resolver
$env
$env
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)
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
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
public supports($resource, null|string $type): bool
resource | ||
type | string |
bool