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
94333459
Commit
94333459
authored
6 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Remove unnecessary code
parent
1d297039
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Feature security update
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Service/RegisterService.php
+1
-32
1 addition, 32 deletions
Classes/Service/RegisterService.php
Classes/XClass/Form/FormEditorController.php
+0
-1
0 additions, 1 deletion
Classes/XClass/Form/FormEditorController.php
with
1 addition
and
33 deletions
Classes/Service/RegisterService.php
+
1
−
32
View file @
94333459
...
...
@@ -48,27 +48,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
*/
private
$registerArray
=
[];
/**
* contains the paths to the registration files
*
* @var array
*/
private
$registrationFiles
=
[];
/**
* Enables extensions to add their registration files
*
* @param string $pathToRegisterFile
* @api
*/
public
function
register
(
$pathToRegisterFile
)
{
if
(
\file_exists
(
$pathToRegisterFile
))
{
$this
->
registrationFiles
[]
=
[
'path'
=>
$pathToRegisterFile
];
}
}
/**
* Get all registered templates from the cache
*
...
...
@@ -80,7 +59,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
public
function
getRegisterArray
():
array
{
$cacheManager
=
GeneralUtility
::
makeInstance
(
CacheManager
::
class
);
$cache
=
$cacheManager
->
getCache
(
self
::
CACHE_NAME
);
$cacheId
=
\md5
(
'sg_mail'
)
;
$cacheId
=
'sg_mail'
;
$entry
=
$cache
->
get
(
$cacheId
);
if
(
!
$entry
)
{
...
...
@@ -223,16 +202,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
];
}
/**
* Get an array with a list of filepaths of all registration files
*
* @api
* @return array
*/
public
function
getRegistrationFiles
():
array
{
return
$this
->
registrationFiles
;
}
/**
* Returns the path to the configured location where automatic mail template registrations should be
*
...
...
This diff is collapsed.
Click to expand it.
Classes/XClass/Form/FormEditorController.php
+
0
−
1
View file @
94333459
...
...
@@ -139,7 +139,6 @@ class FormEditorController extends \TYPO3\CMS\Form\Controller\FormEditorControll
// call register function in register service class
$registrationService
->
getRegisterArray
();
$this
->
clearCaches
();
}
...
...
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