/** * Maps arguments delivered by the request object to the local controller arguments. * * @return void */ protected function mapRequestArgumentsToControllerArguments() { try { parent::mapRequestArgumentsToControllerArguments(); } catch (\Exception $e) { $this->throwStatus(404, null, ucfirst($this->resourceArgumentName) . ' not found.'); } }