-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.php
More file actions
20 lines (13 loc) · 828 Bytes
/
init.php
File metadata and controls
20 lines (13 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$plugin = OW::getPluginManager()->getPlugin('evesso');
OW::getRouter()->addRoute(new OW_Route('evesso_oauth', 'evesso/oauth', 'EVESSO_CTRL_Evesso', 'oauth'));
$route = new OW_Route('evesso_configuration', 'admin/plugins/evesso', 'EVESSO_CTRL_Admin', 'index');
OW::getRouter()->addRoute($route);
$route = new OW_Route('evesso_configuration_settings', 'admin/plugins/evesso/settings', 'EVESSO_CTRL_Admin', 'settings');
OW::getRouter()->addRoute($route);
$route = new OW_Route('evesso_configuration_fields', 'admin/plugins/evesso/settings', 'EVESSO_CTRL_Admin', 'settings');
OW::getRouter()->addRoute($route);
$registry = OW::getRegistry();
$registry->addToArray(BASE_CTRL_Join::JOIN_CONNECT_HOOK, array(new EVESSO_CMP_EvessoButton(), 'render'));
$eventHandler = new EVESSO_CLASS_EventHandler();
$eventHandler->init();