Trying to use a Route List in a package and getting an error that looks deep in Concrete code

I’m not sure if this will do the trick, but have you tried changing your src/RouteList.php to use strings instead of an array to map to the controller?

instead of

$router->post('/api/tickets/applyTicket', [TicketManagementController::class, 'applyTicket']);

could you try:

$router->post('/api/tickets/applyTicket', 'redacted\redacted\Tickets\TicketManagementController::applyTicket');

and see if that does the trick? It looks like this would be closer to the docs: Controllers :: Concrete CMS

Failing that, since you mentioned it is a dev environment can you paste a full stack trace of the error as that may give a clue where it’s originating from (if it doesn’t include any sensitive info you do not want public).

1 Like