@@ -47,25 +47,26 @@ Namespaces
4747
4848The recommended method for organizing your classes is to create one or more namespaces for your
4949application's files. This is most important for any business-logic related classes, entity classes,
50- etc. The ``psr4 `` array in the configuration file allows you to map the namespace to the directory
50+ etc. The ``$ psr4 `` array in the configuration file allows you to map the namespace to the directory
5151those classes can be found in:
5252
5353.. literalinclude :: autoloader/001.php
5454
5555The key of each row is the namespace itself. This does not need a trailing back slash.
56- The value is the location to the directory the classes can be found in. They should
57- have a trailing slash.
56+ The value is the location to the directory the classes can be found in.
5857
5958.. note :: You can check the namespace configuration by ``spark namespaces`` command::
6059
6160 > php spark namespaces
6261
63- By default, the application folder is namespace to the ``App `` namespace. While you are not forced to namespace the controllers,
64- libraries, or models in the application directory, if you do, they will be found under the ``App `` namespace.
62+ By default, the application directory is namespace to the ``App `` namespace. You must namespace the controllers,
63+ libraries, or models in the application directory, and they will be found under the ``App `` namespace.
64+
6565You may change this namespace by editing the **app/Config/Constants.php ** file and setting the
6666new namespace value under the ``APP_NAMESPACE `` setting:
6767
6868.. literalinclude :: autoloader/002.php
69+ :lines: 2-
6970
7071You will need to modify any existing files that are referencing the current namespace.
7172
0 commit comments