File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# MixerAPI Core
22
33[ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/mixerapi/core.svg?style=flat-square )] ( https://packagist.org/packages/mixerapi/core )
4- [ ![ Build] ( https://github.com/mixerapi/core/workflows/Build /badge.svg?branch=master )] ( https://github.com/mixerapi/core/actions?query=workflow%3ABuild )
4+ [ ![ Build] ( https://github.com/mixerapi/core/actions/ workflows/master.yml /badge.svg )] ( https://github.com/mixerapi/core/actions/workflows/master.yml )
55[ ![ Coverage Status] ( https://coveralls.io/repos/github/mixerapi/core/badge.svg?branch=master )] ( https://coveralls.io/github/mixerapi/core?branch=master )
66[](http://mixerapi.com)
77[ ![ CakePHP] ( https://img.shields.io/badge/cakephp-^5.0-red?logo=cakephp )] ( https://book.cakephp.org/4/en/index.html )
@@ -57,5 +57,13 @@ Returns one or more classes in a given namespace.
5757use MixerApi\Core\Utility\NamespaceUtility;
5858
5959$controllers = NamespaceUtility::findClasses('\App\Controller');
60- $controller = NamespaceUtility::findClasses('\App\Controller', 'ActorsController');
60+ ```
61+
62+ By default, this will load classes from your ` src/ ` and ` plugin/*/src ` directories. This should be left as-is unless
63+ your application has a very specific need. You can override the default file path list if necessary.
64+
65+ ``` php
66+ use MixerApi\Core\Utility\NamespaceUtility;
67+
68+ $controllers = NamespaceUtility::findClasses('\App\Controller', ['/absolute/path/to/src']);
6169```
You can’t perform that action at this time.
0 commit comments