Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
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
sg_mail
Commits
21de9c5b
Commit
21de9c5b
authored
6 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Deprecate register functions
parent
253b4e91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Feature security update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Service/MailTemplateService.php
+19
-0
19 additions, 0 deletions
Classes/Service/MailTemplateService.php
with
19 additions
and
0 deletions
Classes/Service/MailTemplateService.php
+
19
−
0
View file @
21de9c5b
...
...
@@ -802,9 +802,13 @@ class MailTemplateService {
* If found, register the template(s)
*
* @throws \BadFunctionCallException
* @deprecated since 4.7.0 will be removed in 5.0.0
* @return array
*/
public
static
function
registerExtensions
():
array
{
// @TODO remove this deprecated function in version 5.0.0
self
::
logDeprecation
(
'registerExtensions'
);
// clear registerArray
$registerArray
=
[];
...
...
@@ -850,12 +854,16 @@ class MailTemplateService {
* @param array $configArray
* @param bool $transformTemplateFolder
* @param string $storeTemplateExtension
* @deprecated since 4.7.0 will be removed in 5.0.0
* @return array
*/
private
static
function
writeRegisterArrayEntry
(
array
$registerArray
,
$extensionKey
,
$templateKey
,
array
$configArray
,
$transformTemplateFolder
=
TRUE
,
$storeTemplateExtension
=
''
)
{
// @TODO remove this deprecated function in version 5.0.0
self
::
logDeprecation
(
'writeRegisterArrayEntry'
);
// If it is not explicitly set in which extension the html should be located, use the extension set in the template settings
if
(
$storeTemplateExtension
===
''
)
{
$storeTemplateExtension
=
$extensionKey
;
...
...
@@ -961,4 +969,15 @@ class MailTemplateService {
return
$allMarker
;
}
/**
* function to call a deprecation log entry (but only once per request / class)
*
* @param $function
*/
private
static
function
logDeprecation
(
$function
)
{
GeneralUtility
::
deprecationLog
(
'The function '
.
$function
.
' is deprecated since version 4.7.0 and will be removed in version 5.0.0'
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment