Archived
1
0
Fork 0

move app/plugins to app/listeners and give them the App\Listener namespace.

This commit is contained in:
Henrik Hautakoski 2018-04-02 23:25:05 +02:00
parent a72932a7ad
commit 6ed63d591f
5 changed files with 17 additions and 15 deletions

View file

@ -2,20 +2,14 @@
$loader = new \Phalcon\Loader();
/**
* We're a registering a set of directories taken from the configuration file
*/
$loader->registerDirs(
array(
$config->application->pluginsDir
)
)->register();
$loader->registerNamespaces(array(
'App\Controller' => $config->application->controllersDir,
'App\Listener' => $config->application->listenersDir,
'Model' => $config->application->modelsDir,
'Form' => $config->application->formsDir,
'Httpcb' => $config->application->libraryDir,
));
$loader->register();
require_once __DIR__ . '/../../vendor/autoload.php';