Guides
Tutorials
Base file extractor.
class ApiPlatform\Metadata\Extractor\AbstractPropertyExtractor implements `<a href="/docs/reference/Metadata/Extractor/PropertyExtractorInterface">ApiPlatform\Metadata\Extractor\PropertyExtractorInterface</a>`
{
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
public getProperties(): array
protected extractPath(string $path): null
protected resolve($value)
}
class ApiPlatform\Metadata\Extractor\AbstractPropertyExtractor implements `<a href="/docs/reference/Metadata/Extractor/PropertyExtractorInterface">ApiPlatform\Metadata\Extractor\PropertyExtractorInterface</a>`
{
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
public getProperties(): array
protected extractPath(string $path): null
protected resolve($value)
}
array $properties
array $properties
array $paths
array $paths
public __construct(array<int, string> $paths, null|Psr\Container\ContainerInterface $container)
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 getProperties(): array
public getProperties(): array
array
Extracts metadata from a given path.
protected extractPath(string $path): null
protected extractPath(string $path): null
path | string |
null
Recursively replaces placeholders with the service container parameters.
protected resolve($value)
protected resolve($value)
value | The source which might contain "%placeholders%" |