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)
}
array $resources
array $paths
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
paths | array<int, string> | |
container | Psr\Container\ContainerInterface |
Parses all metadata files and convert them in an array.
public getResources(): array
array
Extracts metadata from a given path.
protected extractPath(string $path): null
path | string |
null
Recursively replaces placeholders with the service container parameters.
protected resolve($value)
value | The source which might contain "%placeholders%" |
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