move app/plugins to app/listeners and give them the App\Listener namespace.
This commit is contained in:
parent
a72932a7ad
commit
6ed63d591f
5 changed files with 17 additions and 15 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Reference in a new issue