match($managerName,$managerCommand)){ $manager->dispatch($_POST); }else{ $response = json_encode(['result' => false, 'message' => "commande inexistante"]); $objectResponse = new Response(404); $objectResponse->write($response); $objectResponse->send(); } }else{ $response = json_encode(['result' => false, 'message' => "Variable POST command inexistante"]); $objectResponse = new Response(404); $objectResponse->write($response); $objectResponse->send(); } ob_end_clean(); ?>