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 $propertiesarray $propertiesarray $pathsarray $pathspublic __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(): arraypublic getProperties(): arrayarray
Extracts metadata from a given path.
protected extractPath(string $path): nullprotected 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%" |