-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathext_localconf.php
More file actions
31 lines (27 loc) · 1.08 KB
/
Copy pathext_localconf.php
File metadata and controls
31 lines (27 loc) · 1.08 KB
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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['openweathermap_php_api_service'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['openweathermap_php_api_service'] = array();
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
$_EXTKEY,
'openweathermap_php_api',
'tx_openweathermap_php_api_service',
array (
'title' => 'OpenWeatherMap PHP Api for TYPO3',
'description' => '',
'subtype' => '',
'available' => TRUE,
'priority' => 50,
'quality' => 50,
'os' => '',
'exec' => '',
'classFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Service/OpenweathermapPhpApiService.php',
'className' => 'RauchF\OpenweathermapPhpApiService\Service\OpenweathermapPhpApiService',
)
);
$composerAutoloadFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY)
. 'Resources/Private/Vendor/autoload.php';
require_once($composerAutoloadFile);