豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 295b4f2

Browse files
committed
Update docs for cakephp/cakephp#19374
1 parent 643abc8 commit 295b4f2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/en/appendices/5-4-migration-guide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ bin/cake upgrade rector --rules cakephp54 <path/to/app/src>
3838

3939
## Deprecations
4040

41+
### Command Helpers
42+
43+
- Command helpers under the `Cake\Command\Helper` namespace have been deprecated.
44+
Instead they have been moved under the `Cake\Console\Helper` namespace.
45+
4146
### Mailer
4247

4348
- The `Mailer::$name` property is unused and has been deprecated.

docs/en/console-commands/input-output.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ $progress->draw();
3939

4040
While CakePHP comes with a few command helpers you can create more in your
4141
application or plugins. As an example, we'll create a simple helper to generate
42-
fancy headings. First create the **src/Command/Helper/HeadingHelper.php** and put
42+
fancy headings. First create the **src/Console/Helper/HeadingHelper.php** and put
4343
the following in it:
4444

4545
```php
4646
<?php
47-
namespace App\Command\Helper;
47+
namespace App\Console\Helper;
4848

4949
use Cake\Console\Helper;
5050

@@ -74,7 +74,8 @@ parameters. However, because Console Helpers are vanilla classes they can
7474
implement additional methods that take any form of arguments.
7575

7676
> [!NOTE]
77-
> Helpers can also live in `src/Shell/Helper` for backwards compatibility.
77+
> Helpers can also live in `src/Command/Helper` for backwards compatibility with
78+
> CakePHP 5.3 and below.
7879
7980
## Built-In Helpers
8081

0 commit comments

Comments
 (0)