You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/general/modules.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,13 +95,13 @@ The discovery process would look for discoverable items on that path and should,
95
95
Enable/Disable Discover
96
96
=======================
97
97
98
-
You can turn on or off all auto-discovery in the system with the **$enabled** class variable. False will disable
98
+
You can turn on or off all auto-discovery in the system with the ``$enabled`` class variable. False will disable
99
99
all discovery, optimizing performance, but negating the special capabilities of your modules.
100
100
101
101
Specify Discovery Items
102
102
=======================
103
103
104
-
With the **$aliases** option, you can specify which items are automatically discovered. If the item is not
104
+
With the ``$aliases`` option, you can specify which items are automatically discovered. If the item is not
105
105
present, then no auto-discovery will happen for that item, but the others in the array will still be discovered.
106
106
107
107
Discovery and Composer
@@ -168,12 +168,12 @@ with the ``new`` command:
168
168
169
169
.. literalinclude:: modules/008.php
170
170
171
-
Config files are automatically discovered whenever using the **config()** function that is always available.
171
+
Config files are automatically discovered whenever using the ``config()`` function that is always available.
172
172
173
173
.. note:: We don't recommend you use the same short classname in modules.
174
174
Modules that need to override or add to known configurations in **app/Config/** should use :ref:`registrars`.
175
175
176
-
.. note:: **config()** finds the file in **app/Config/** when there is a class with the same shortname,
176
+
.. note:: ``config()`` finds the file in **app/Config/** when there is a class with the same shortname,
177
177
even if you specify a fully qualified class name like ``config(\Acme\Blog\Config\Blog::class)``.
178
178
This is because ``config()`` is a wrapper for the ``Factories`` class which uses ``preferApp`` by default. See :ref:`factories-options` for more information.
0 commit comments