Browse Source

Update exception names in bake templates.

mark_story 11 years ago
parent
commit
024ed3ae5f

+ 3 - 3
src/Template/Bake/default/actions/controller_actions.ctp

@@ -53,7 +53,7 @@ $allAssociations = array_merge(
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function view($id = null) {
 		$<?= $singularName?> = $this-><?= $currentModelName ?>->get($id, [
@@ -96,7 +96,7 @@ $allAssociations = array_merge(
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function edit($id = null) {
 		$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id, [
@@ -128,7 +128,7 @@ $allAssociations = array_merge(
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function delete($id = null) {
 		$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id);

+ 3 - 3
tests/bake_compare/Controller/Actions.ctp

@@ -16,7 +16,7 @@
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function view($id = null) {
 		$bakeArticle = $this->BakeArticles->get($id, [
@@ -50,7 +50,7 @@
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function edit($id = null) {
 		$bakeArticle = $this->BakeArticles->get($id, [
@@ -75,7 +75,7 @@
  *
  * @param string $id
  * @return void
- * @throws NotFoundException
+ * @throws \Cake\Network\Exception\NotFoundException
  */
 	public function delete($id = null) {
 		$bakeArticle = $this->BakeArticles->get($id);