forked from tomasnorre/crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
45 lines (37 loc) · 1.31 KB
/
ext_localconf.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
<?php
defined('TYPO3_MODE') or die();
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['crawler'] = [
'EXT:crawler/cli/crawler_cli.php',
'_CLI_crawler'
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['crawler_im'] = [
'EXT:crawler/cli/crawler_im.php',
'_CLI_crawler'
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['crawler_flush'] = [
'EXT:crawler/cli/crawler_flush.php',
'_CLI_crawler'
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['crawler_multiprocess'] = [
'EXT:crawler/cli/crawler_multiprocess.php',
'_CLI_crawler'
];
\AOE\Crawler\Utility\HookUtility::registerHooks($_EXTKEY);
\AOE\Crawler\Utility\SchedulerUtility::registerSchedulerTasks($_EXTKEY);
$GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['BE_alwaysFetchUser'] = true;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
$_EXTKEY,
'auth' /* sv type */,
'AOE\Crawler\Service\AuthenticationService' /* sv key */,
[
'title' => 'Login for wsPreview',
'description' => '',
'subtype' => 'getUserBE,authUserBE',
'available' => true,
'priority' => 80,
'quality' => 50,
'os' => '',
'exec' => '',
'className' => 'AOE\\Crawler\\Service\\AuthenticationService',
]
);