-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from oveleon/develop
Drop 4.9 Support and other changes
- Loading branch information
Showing
39 changed files
with
345 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Oveleon ContaoMemberExtension Bundle. | ||
* | ||
* @package contao-member-extension-bundle | ||
* @license MIT | ||
* @author Sebastian Zoglowek <https://github.com/zoglo> | ||
* @author Daniele Sciannimanica <https://github.com/doishub> | ||
* @author Fabian Ekert <https://github.com/eki89> | ||
* @copyright Oveleon <https://www.oveleon.de/> | ||
*/ | ||
|
||
// Back end modules | ||
use Contao\ArrayUtil; | ||
|
||
$GLOBALS['BE_MOD']['system']['member_settings'] = [ | ||
'tables' => ['tl_member_settings'], | ||
'hideInNavigation' => true, | ||
]; | ||
|
||
// Front end modules | ||
ArrayUtil::arrayInsert($GLOBALS['FE_MOD']['user'], -1, [ | ||
'avatar' => 'Oveleon\ContaoMemberExtensionBundle\ModuleAvatar', | ||
'deleteAvatar' => 'Oveleon\ContaoMemberExtensionBundle\ModuleDeleteAvatar', | ||
'memberList' => 'Oveleon\ContaoMemberExtensionBundle\ModuleMemberList', | ||
'memberReader' => 'Oveleon\ContaoMemberExtensionBundle\ModuleMemberReader' | ||
]); | ||
|
||
// Register hooks | ||
$GLOBALS['TL_HOOKS']['createNewUser'][] = ['Oveleon\ContaoMemberExtensionBundle\Member', 'createAvatar']; | ||
$GLOBALS['TL_HOOKS']['updatePersonalData'][] = ['Oveleon\ContaoMemberExtensionBundle\Member', 'updateAvatar']; |
Oops, something went wrong.