Skip to content

Commit

Permalink
Corrects MethodNotAllowedException namespace #40
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Feb 15, 2021
1 parent bd39faa commit 35c8a58
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugins/bake/templates/bake/element/Controller/add.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Add method
*
* @return \Cake\Http\Response|null|void HTTP 200 on successful add
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function add()
Expand Down
2 changes: 1 addition & 1 deletion plugins/bake/templates/bake/element/Controller/delete.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @param string|null $id {{ singularHumanName }} id.
* @return \Cake\Http\Response|null|void HTTP 204 on success
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function delete($id = null)
Expand Down
2 changes: 1 addition & 1 deletion plugins/bake/templates/bake/element/Controller/edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @param string|null $id {{ singularHumanName }} id.
* @return \Cake\Http\Response|null|void HTTP 200 on successful edit
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function edit($id = null)
Expand Down
2 changes: 1 addition & 1 deletion plugins/bake/templates/bake/element/Controller/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Index method
*
* @return \Cake\Http\Response|null|void Renders view
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
*/
public function index()
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/bake/templates/bake/element/Controller/view.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @param string|null $id {{ singularHumanName }} id.
* @return \Cake\Http\Response|null|void Renders view
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
*/
public function view($id = null)
{
Expand Down
10 changes: 5 additions & 5 deletions plugins/bake/tests/assets/DepartmentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DepartmentsController extends AppController
* Index method
*
* @return \Cake\Http\Response|null|void Renders view
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
*/
public function index()
{
Expand All @@ -33,7 +33,7 @@ public function index()
* @param string|null $id Department id.
* @return \Cake\Http\Response|null|void Renders view
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
*/
public function view($id = null)
{
Expand All @@ -51,7 +51,7 @@ public function view($id = null)
* Add method
*
* @return \Cake\Http\Response|null|void HTTP 200 on successful add
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function add()
Expand All @@ -74,7 +74,7 @@ public function add()
* @param string|null $id Department id.
* @return \Cake\Http\Response|null|void HTTP 200 on successful edit
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function edit($id = null)
Expand All @@ -99,7 +99,7 @@ public function edit($id = null)
* @param string|null $id Department id.
* @return \Cake\Http\Response|null|void HTTP 204 on success
* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
* @throws \Cake\Datasource\Exception\MethodNotAllowedException When invalid method
* @throws \Cake\Http\Exception\MethodNotAllowedException When invalid method
* @throws \Exception
*/
public function delete($id = null)
Expand Down

0 comments on commit 35c8a58

Please sign in to comment.