Skip to content

Laravel : 4.2.14 - NotExposedController breaks existing app #7722

@MPerezMM

Description

@MPerezMM

API Platform version(s) affected: 4.2.14 Laravel

Description

Upgrading an existing API using Laravel API Platform to v. 4.2.14 causes error 500 :

TypeErrorvendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:27
ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, ApiPlatform\Laravel\Controller\NotExposedController given

How to reproduce

The impacted API is using Controllers for authentication and to expose an older endpoint using Laravel standard API: so api/v1 uses controllers and routes, and api/v2 uses API Platform, it was working fine until v. 4.2.14

Possible Solution

Downgrading to 4.2.13 is the only solution I found yet. If you have any idea to fix this it would be great!

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions