Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
scriptmerger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
scriptmerger
Merge requests
!4
Feature upgrade to9 lts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature upgrade to9 lts
feature_UpgradeTo9LTS
into
master
Overview
0
Commits
9
Changes
13
Merged
Kevin Ditscheid
requested to merge
feature_UpgradeTo9LTS
into
master
6 years ago
Overview
0
Commits
9
Changes
3
Expand
0
0
Merge request reports
Compare
version 2
version 4
b95180c7
6 years ago
version 3
bcdd7671
6 years ago
version 2
24957426
6 years ago
version 1
a7d59915
6 years ago
master (base)
and
version 3
latest version
ca2e73e4
9 commits,
6 years ago
version 4
b95180c7
8 commits,
6 years ago
version 3
bcdd7671
7 commits,
6 years ago
version 2
24957426
6 commits,
6 years ago
version 1
a7d59915
5 commits,
6 years ago
Show latest version
3 files
+
61
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Classes/Utility/ExtensionUtility.php
0 → 100644
+
53
−
0
Options
<?php
/**
*
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
namespace
SGalinski\Scriptmerger\Utility
;
use
TYPO3\CMS\Core\Utility\VersionNumberUtility
;
/**
* Utility class for extension specific functionality
*
* @package SGalinski\Scriptmerger\Utility
* @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
*/
class
ExtensionUtility
{
/**
* Get the extension configuration
*
* @return array
*/
public
static
function
getExtensionConfiguration
():
array
{
if
(
version_compare
(
VersionNumberUtility
::
getCurrentTypo3Version
(),
'9.0.0'
,
'<'
))
{
$extConf
=
\unserialize
(
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'EXT'
][
'extConf'
][
'scriptmerger'
],
[
'allowed_classes'
=>
FALSE
]
);
return
is_array
(
$extConf
)
?
$extConf
:
[];
}
return
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'EXTENSIONS'
][
'scriptmerger'
]
??
[];
}
}
Loading