Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Documents the use_zend_loader option
Browse files Browse the repository at this point in the history
- Within the `ModuleAutoloader` chapter, a new note documents the new
  option.
  • Loading branch information
weierophinney committed Jul 11, 2017
1 parent 74f06db commit 0000db5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions doc/book/module-autoloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,33 @@ $moduleManager->loadModules();
> than one registered module path, the module autoloader will return the first
> one it finds.
> ### Disabling the ModuleAutoloader
>
> - Since 2.8.0
>
> If you are using Composer to autoload, you may not need to use the
> `ModuleAutolaoder`. As such, you can disable it by passing the following
> option to the `ListenerOptions` class:
>
> ```php
> 'use_zend_loader' => false,
> ```
>
> If your project was begun from the [skeleton application](https://github.com/zendframework/ZendSkeletonApplication),
> place the above within the `module_listener_options` configuration of your
> `config/application.config.php` file:
>
> ```php
> return [
> /* ... */
> 'module_listener_options' => [
> 'use_zend_loader' => false,
> /* ... */
> ],
> /* ... */
> ];
> ```
## Non-Standard / Explicit Module Paths
Sometimes you may want to specify exactly where a module is instead of having
Expand Down

0 comments on commit 0000db5

Please sign in to comment.