PHP Class ApiPlatform\Core\Bridge\Symfony\Routing\ApiLoader

Author: Kévin Dunglas ([email protected])
Inheritance: extends Symfony\Component\Config\Loader\Loader
Datei anzeigen Open project: api-platform/core

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\PathResolver\OperationPathResolverInterface $operationPathResolver, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats )
load ( $data, $type = null )
supports ( $resource, $type = null )

Private Methods

Method Description
addRoute ( RouteCollection $routeCollection, string $resourceClass, string $operationName, array $operation, string $resourceShortName, boolean $collection ) Creates and adds a route for the given operation to the route collection.
loadExternalFiles ( RouteCollection $routeCollection ) Load external files.

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\PathResolver\OperationPathResolverInterface $operationPathResolver, Symfony\Component\DependencyInjection\ContainerInterface $container, array $formats )
$kernel Symfony\Component\HttpKernel\KernelInterface
$resourceNameCollectionFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$operationPathResolver ApiPlatform\Core\PathResolver\OperationPathResolverInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$formats array

load() public method

public load ( $data, $type = null )

supports() public method

public supports ( $resource, $type = null )