Skip to content

Commit 8098d64

Browse files
authored
Merge pull request #8089 from cakephp/func
Use correct function to add autoDiscovered commands
2 parents c7e7fdc + 030eb53 commit 8098d64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fr/console-commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ dans votre plugin::
123123
}
124124

125125
Quand vous réécrivez le crochet ``console()`` de votre application, pensez à
126-
appeler ``$commands->autoDiscover()`` pour ajouter des commandes de CakePHP, de
126+
appeler ``$commands->addMany($commands->autoDiscover())`` pour ajouter des commandes de CakePHP, de
127127
votre application, et des plugins.
128128

129129
Si vous avez besoin de renommer ou supprimer une commande attachée, vous pouvez

ja/console-commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CakePHPアプリケーションには、シェルとタスクを含む **src/Com
117117
}
118118

119119
アプリケーションの ``console()`` フックを上書きする場合、
120-
``$commands->autoDiscover()`` を呼び出して、CakePHP、アプリケーション、
120+
``$commands->addMany($commands->autoDiscover())`` を呼び出して、CakePHP、アプリケーション、
121121
およびプラグインからコマンドを追加することを忘れないでください。
122122

123123
添付されているコマンドの名前を変更したい・削除する必要がある場合は、

0 commit comments

Comments
 (0)