Skip to content

Commit 582bd9b

Browse files
committed
[TASK] Code cleanup
1 parent b999480 commit 582bd9b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Classes/Finisher/FinisherRunner.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use In2code\Powermail\Domain\Model\Mail;
66
use In2code\Powermail\Exception\ClassDoesNotExistException;
77
use In2code\Powermail\Exception\InterfaceNotImplementedException;
8-
use In2code\Powermail\Utility\ObjectUtility;
98
use In2code\Powermail\Utility\StringUtility;
9+
use TYPO3\CMS\Core\Utility\GeneralUtility;
1010
use TYPO3\CMS\Extbase\Object\Exception;
1111
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
1212

@@ -15,11 +15,10 @@
1515
*/
1616
class FinisherRunner
1717
{
18-
1918
/**
2019
* @var string
2120
*/
22-
protected $interface = 'In2code\Powermail\Finisher\FinisherInterface';
21+
protected $interface = FinisherInterface::class;
2322

2423
/**
2524
* Call finisher classes after submit
@@ -32,7 +31,6 @@ class FinisherRunner
3231
* @return void
3332
* @throws ClassDoesNotExistException
3433
* @throws InterfaceNotImplementedException
35-
* @throws Exception
3634
*/
3735
public function callFinishers(
3836
Mail $mail,
@@ -58,7 +56,7 @@ public function callFinishers(
5856
}
5957

6058
/** @var AbstractFinisher $finisher */
61-
$finisher = ObjectUtility::getObjectManager()->get(
59+
$finisher = GeneralUtility::makeInstance(
6260
$class,
6361
$mail,
6462
$finisherSettings['config'],

0 commit comments

Comments
 (0)