From 1a4ec06e6739e101ee339cb106439004924934b0 Mon Sep 17 00:00:00 2001 From: saeideng Date: Mon, 18 Jun 2018 17:14:44 +0430 Subject: [PATCH 1/2] add alias for 'NotFoundException' --- aliases.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aliases.php b/aliases.php index 721631408..8c7219774 100644 --- a/aliases.php +++ b/aliases.php @@ -12,4 +12,8 @@ class_alias( 'Cake\Network\Exception\BadRequestException', 'Cake\Http\Exception\BadRequestException' ); + class_alias( + 'Cake\Network\Exception\NotFoundException' + 'Cake\Http\Exception\NotFoundException', + ); } From 8a5a2221e0029b0f46f197a60b79002a3b549dac Mon Sep 17 00:00:00 2001 From: ADmad Date: Mon, 18 Jun 2018 18:25:48 +0530 Subject: [PATCH 2/2] Fix syntax --- aliases.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aliases.php b/aliases.php index 8c7219774..b1163771b 100644 --- a/aliases.php +++ b/aliases.php @@ -13,7 +13,7 @@ class_alias( 'Cake\Http\Exception\BadRequestException' ); class_alias( - 'Cake\Network\Exception\NotFoundException' - 'Cake\Http\Exception\NotFoundException', + 'Cake\Network\Exception\NotFoundException', + 'Cake\Http\Exception\NotFoundException' ); }