-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.php
executable file
·73 lines (61 loc) · 2.36 KB
/
manifest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
* @author CRP Henri Tudor - TAO Team - {@link http://www.tao.lu}
* @license GPLv2 http://www.opensource.org/licenses/gpl-2.0.php
*
* phpcs:disable Generic.Files.LineLength
*/
use oat\tao\model\routing\LegacyRoute;
use oat\taoResultServer\models\AssessmentResultResolver\DependencyInjection\AssessmentResultResolverContainerServiceProvider;
use oat\taoResultServer\models\Import\ImportServiceProvider;
use oat\taoResultServer\models\routing\ApiRoute;
use oat\taoResultServer\scripts\update\Updater;
// phpcs:enable
$extpath = __DIR__ . DIRECTORY_SEPARATOR;
return [
'name' => 'taoResultServer',
'label' => 'Result core extension',
'description' => 'Results Server management and exposed interfaces for results data submission',
'license' => 'GPL-2.0',
'author' => 'Open Assessment Technologies',
'models' => [
'http://www.tao.lu/Ontologies/TAOResultServer.rdf#'
],
'install' => [
'rdf' => [
__DIR__ . '/models/ontology/taoResultServer.rdf'
],
'php' => [
]
],
'update' => Updater::class,
'managementRole' => 'http://www.tao.lu/Ontologies/TAOResultServer.rdf#ResultServerRole',
'acl' => [
['grant', 'http://www.tao.lu/Ontologies/TAOResultServer.rdf#ResultServerRole', ['ext' => 'taoResultServer']],
['grant', 'http://www.tao.lu/Ontologies/TAO.rdf#DeliveryRole', [
'ext' => 'taoResultServer', 'mod' => 'ResultServerStateFull'
]],
],
'constants' => [
# actions directory
"DIR_ACTIONS" => $extpath . "actions" . DIRECTORY_SEPARATOR,
# views directory
"DIR_VIEWS" => $extpath . "views" . DIRECTORY_SEPARATOR,
# default module name
'DEFAULT_MODULE_NAME' => 'Result',
#default action name
'DEFAULT_ACTION_NAME' => 'index',
#BASE PATH: the root path in the file system (usually the document root)
'BASE_PATH' => $extpath,
#BASE URL (usually the domain root)
'BASE_URL' => ROOT_URL . '/taoResultServer',
],
'routes' => [
'/taoResultServer/api' => ['class' => ApiRoute::class],
'/taoResultServer' => ['class' => LegacyRoute::class],
],
'containerServiceProviders' => [
AssessmentResultResolverContainerServiceProvider::class,
ImportServiceProvider::class,
]
];