Skip to content

Commit 0f3dd6f

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.3
2 parents b395a84 + 4fd157b commit 0f3dd6f

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

rector.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@
105105
__DIR__ . '/system/Session/Handlers',
106106
],
107107

108-
StringClassNameToClassConstantRector::class => [
109-
// may cause load view files directly when detecting namespaced string
110-
// due to internal PHPStan issue
111-
__DIR__ . '/app/Config/Pager.php',
112-
__DIR__ . '/app/Config/Validation.php',
113-
__DIR__ . '/tests/system/Validation/StrictRules/ValidationTest.php',
114-
__DIR__ . '/tests/system/Validation/ValidationTest.php',
115-
],
116-
117108
// sometime too detail
118109
CountOnNullRector::class,
119110

user_guide_src/source/cli/cli_generators.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ etc. You can also scaffold a complete set of files with just one command.
1313
Introduction
1414
************
1515

16-
All built-in generators reside under the ``Generators`` namespace when listed using ``php spark list``.
16+
All built-in generators reside under the ``Generators`` group when listed using ``php spark list``.
1717
To view the full description and usage information on a particular generator, use the command::
1818

1919
> php spark help <generator_command>
@@ -28,7 +28,7 @@ where ``<generator_command>`` will be replaced with the command to check.
2828

2929
.. note:: Working on modules? Code generation will set the root namespace to a default of ``APP_NAMESPACE``.
3030
Should you need to have the generated code elsewhere in your module namespace, make sure to set
31-
the ``--namespace`` option in your command, e.g., ``php spark make:model blog --namespace Acme\Blog``.
31+
the ``--namespace`` option in your command, e.g., ``php spark make:model blog --namespace Acme\\Blog``.
3232

3333
.. warning:: Make sure when setting the ``--namespace`` option that the supplied namespace is a valid
3434
namespace defined in your ``$psr4`` array in ``Config\Autoload`` or defined in your composer autoload
@@ -292,12 +292,12 @@ Running this in your terminal::
292292

293293
> php spark make:scaffold user
294294

295-
will create the following classes:
295+
will create the following files:
296296

297-
(1) ``App\Controllers\User``;
298-
(2) ``App\Models\User``;
299-
(3) ``App\Database\Migrations\<some date here>_User``; and
300-
(4) ``App\Database\Seeds\User``.
297+
(1) **app/Controllers/User.php**
298+
(2) **app/Models/User.php**
299+
(3) **app/Database/Migrations/<some date here>_User.php** and
300+
(4) **app/Database/Seeds/User.php**
301301

302302
To include an ``Entity`` class in the scaffolded files, just include the ``--return entity`` to the command
303303
and it will be passed to the model generator.

0 commit comments

Comments
 (0)