Skip to content

Customize controller for Laravel #7550

@Dasc3er

Description

@Dasc3er

Description

Following the documentation, with Symphony it is possible to override the controller or rely on provider/processor systems, while the Laravel integration is limited to provider/processors only.
This can also be verified with a simple test case in Laravel.

This seems hard coded here:

$route = Route::addRoute($operation->getMethod(), $uriTemplate, ['uses' => ApiPlatformController::class, 'prefix' => $operation->getRoutePrefix() ?? ''])

Would it be possible to allow custom controllers here, for use cases where a bit more flexibility is generally helpful?
There should also be a documented way to correctly serialize/deserialize contents for this case.

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