-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
46 lines (41 loc) · 2 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
46
<?php
/*
* This file is part of the Blogmaster project.
* Copyright (C) 2016 Midhun Devasia <[email protected]>
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 3
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* Blogmaster - A blog system for TYPO3!
*/
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Tutorboy.' . $_EXTKEY,
'Blog',
[
'BlogFrontend' => 'render',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Tutorboy.' . $_EXTKEY,
'Comment',
[
'Comment' => 'commentForm,addComment',
]
);
// Blog services like feed, xmlrpc etc
\Tutorboy\Blogmaster\Service\BlogService::addService('feed', \Tutorboy\Blogmaster\Service\FeedService::class . '->generateBlogFeed');
\Tutorboy\Blogmaster\Service\BlogService::addService('commentsFeed', \Tutorboy\Blogmaster\Service\FeedService::class . '->generateCommentsFeed');
\Tutorboy\Blogmaster\Service\BlogService::addService('init', \Tutorboy\Blogmaster\Service\Core\GeneralService::class . '->activateFuturePosts');
// Hooks
//$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['encodeSpURL_postProc'][] = 'Tutorboy\\Blogmaster\\Hooks\\RealUrlHooks->encodeSpUrl_postProc';
//$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['decodeSpURL_preProc'][] = 'Tutorboy\\Blogmaster\\Hooks\\RealUrlHooks->decodeSpUrl_preProc';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'][$_EXTKEY] = 'Tutorboy\\Blogmaster\\Hooks\\PageRendererHooks->renderPostProcess';
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration'][$_EXTKEY]
= \Tutorboy\Blogmaster\Hooks\RealUrlAutoConfiguration::class . '->addBlogConfiguration';
}