Is it possible to "disable" specific actions when the prod environment is active?
I have a few test actions which shouldn't be executed in a production environment.
class TestController extends FOSRestController
{
/**
* @Rest\Get("/api/test", name="api_test")
*/
public function testAction(Request $request)
{
// something
return;
}
}