Guides
Tutorials
Extracts an array of metadata from a list of YAML files.
class ApiPlatform\Metadata\Extractor\YamlResourceExtractor extends ApiPlatform\Metadata\Extractor\AbstractResourceExtractor implements `<a href="/docs/reference/Metadata/Extractor/ResourceExtractorInterface">ApiPlatform\Metadata\Extractor\ResourceExtractorInterface</a>`
{
protected extractPath(string $path): null
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
public getResources(): array
protected resolve($value)
}
class ApiPlatform\Metadata\Extractor\YamlResourceExtractor extends ApiPlatform\Metadata\Extractor\AbstractResourceExtractor implements `<a href="/docs/reference/Metadata/Extractor/ResourceExtractorInterface">ApiPlatform\Metadata\Extractor\ResourceExtractorInterface</a>`
{
protected extractPath(string $path): null
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
public getResources(): array
protected resolve($value)
}
array $resources
array $resources
array $paths
array $paths
Extracts metadata from a given path.
protected extractPath(string $path): null
protected extractPath(string $path): null
path | string |
null