If I use the controller as a service architecture I need to set scope for this controller.
ScopeCrossingInjectionException in CheckReferenceValidityPass.php line 147:
Scope Crossing Injection detected:
The definition "app.controller.waypoint_controller" references the service "datatable" which belongs to another scope hierarchy.
This service might not be available consistently.
Generally, it is safer to either move the definition "app.controller.waypoint_controller" to scope "prototype", or declare "container" as a child scope of "prototype".
If you can be sure that the other scope is always active, you can set the reference to strict=false to get rid of this error.```
If I use the controller as a service architecture I need to set scope for this controller.