File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# MixerAPI Core
2
2
3
3
[ ![ 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 )
5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/github/mixerapi/core/badge.svg?branch=master )] ( https://coveralls.io/github/mixerapi/core?branch=master )
6
6
[](http://mixerapi.com)
7
7
[ ![ 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.
57
57
use MixerApi\Core\Utility\NamespaceUtility;
58
58
59
59
$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']);
61
69
```
You can’t perform that action at this time.
0 commit comments