genDiModel()
genDiModel(string $directory, array $exclude) : array
Find all models in a directory
Parameters
| string | $directory | Directory where models have to be find. |
| array | $exclude | Model to be exclude in the return |
Throws
- \RuntimeException
id $directory is not a valid directory
Returns
array —key is the service name and value the full Class name (including namespace if needed)