Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Code Modules documentation for psr4 namespace configuration #2290

Merged
merged 1 commit into from
Sep 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions user_guide_src/source/general/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ directory in the main project root::

Open **app/Config/Autoload.php** and add the **Acme** namespace to the ``psr4`` array property::

public $psr4 = [
'Acme' => ROOTPATH.'acme'
$psr4 = [
'Config' => APPPATH . 'Config',
APP_NAMESPACE => APPPATH, // For custom namespace
'App' => APPPATH, // To ensure filters, etc still found,
'Acme' => ROOTPATH.'acme'
];

Now that this is setup we can access any file within the **acme** folder through the ``Acme`` namespace. This alone
Expand Down