I'm on a windows system, trying to get the loader to work.
The scripts current directory was set to "app/" by using chdir()
my app folder looks like this:
app/
cache/
config/
controllers/
core/
libraries/
common/
plugins/
util/
models/
views/
I parse my config ini like this:
self::$config = new Config\Adapter\Ini(self::CONFIG_INI_FILE_PATH);
it has the following configuration:
[loaderNamespaces] App\Controllers='controllers/' App\Models='models/' App\Libraries\Plugins='libraries/plugins/' App\Libraries\Utli='libraries/util/'
In my core the loader does the following:
$loader = new Loader();
$loader->registerNamespaces(self::$config->loaderNamespaces->toArray());
$loader->register();
Checking the loader with xdebug, shows that all configuration were passed to the loader.
But it wount work. Does anyone have an idea what I'm doing wrong here?