8000 ReflectionException: Class not found · Issue #3349 · api-platform/core · GitHub
[go: up one dir, main page]

Skip to content
ReflectionException: Class not found #3349
@ivansrdic

Description

@ivansrdic

API Platform version(s) affected: 2.5.4 (from commit baf0542)

Description / How to reproduce
Loading the api docs causes several "class not found" ReflectionExceptions.
Screenshot from 2020-01-20 13-53-51
Possibly related to #3344

Possible Solution
Seems to be related to src/JsonSchema/TypeFactory:102. If the check in changed from and to or, everything works (working example below)

        if ($this->isResourceClass($className) || true !== $readableLink) {
            return [
                'type' => 'string',
                'format' => 'iri-reference',
            ];
        }

Unfortunately I don't know the internals enough to know if this breaks anything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0