ApiPlatform\Core\Metadata\Resource\Factory\ExtractorResourceMetadataFactory::handleNotFound PHP Method

handleNotFound() private method

Returns the metadata from the decorated factory if available or throws an exception.
private handleNotFound ( ResourceMetadata $parentPropertyMetadata = null, string $resourceClass ) : ResourceMetadata
$parentPropertyMetadata ApiPlatform\Core\Metadata\Resource\ResourceMetadata
$resourceClass string
return ApiPlatform\Core\Metadata\Resource\ResourceMetadata
    private function handleNotFound(ResourceMetadata $parentPropertyMetadata = null, string $resourceClass) : ResourceMetadata
    {
        if (null !== $parentPropertyMetadata) {
            return $parentPropertyMetadata;
        }
        throw new ResourceClassNotFoundException(sprintf('Resource "%s" not found.', $resourceClass));
    }
ExtractorResourceMetadataFactory