Skip to content

Commit dc46727

Browse files
authored
Merge pull request #2750 from dafriend/modules-docs
Revise modules documentation page [ci skip]
2 parents 811e640 + 3154d9c commit dc46727

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

user_guide_src/source/general/modules.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,10 @@ file types, including:
7878

7979
This is configured in the file **app/Config/Modules.php**.
8080

81-
The auto-discovery system works by scanning any psr4 namespaces that have been defined within **Config/Autoload.php**
82-
for familiar directories/files.
81+
The auto-discovery system works by scanning for particular directories and files within psr4 namespaces that have been defined in **Config/Autoload.php**.
8382

84-
When at the **acme** namespace above, we would need to make one small adjustment to make it so the files could be found:
85-
each "module" within the namespace would have to have it's own namespace defined there. **Acme** would be changed
86-
to **Acme\Blog**. Once your module folder has been defined, the discover process would look for a Routes file, for example,
87-
at **/acme/Blog/Config/Routes.php**, just as if it was another application.
83+
To make auto-discovery work for our **Blog** namespace, we need to make one small adjustment.
84+
**Acme** needs to be changed to **Acme\\Blog** because each "module" within the namespace needs to be fully defined. Once your module folder path is defined, the discovery process would look for discoverable items on that path and should, for example, find the routes file at **/acme/Blog/Config/Routes.php**.
8885

8986
Enable/Disable Discover
9087
=======================

0 commit comments

Comments
 (0)