References AbstractResourceExtractor
Reference
C
Class

ApiPlatform\Metadata\Extractor\AbstractResourceExtractor

Base file extractor.

class ApiPlatform\Metadata\Extractor\AbstractResourceExtractor implements ApiPlatform\Metadata\Extractor\ResourceExtractorInterface
{
    public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
    public getResources(): array
    protected extractPath(string $path): null
    protected resolve($value)
}

Properties

resources

array $resources

paths

array $paths

Methods

__construct

public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)

Parameters

pathsarray<int, string>
containerPsr\Container\ContainerInterface

getResources

Parses all metadata files and convert them in an array.

public getResources(): array

Returns

array

extractPath

Extracts metadata from a given path.

protected extractPath(string $path): null

Parameters

pathstring

Returns

null

resolve

Recursively replaces placeholders with the service container parameters.

protected resolve($value)

Parameters

valueThe source which might contain "%placeholders%"

Returns

See also

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