Skip to content

Commit

Permalink
Merge pull request cyberhouse#4 from schugabe/master
Browse files Browse the repository at this point in the history
[TASK] use class operator in localconf
  • Loading branch information
georgringer authored Dec 15, 2016
2 parents 57822d0 + 6620d10 commit 533d37a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'constraints' => array(
'depends' => array(
'typo3' => '7.6.0-7.9.99',
'news' => '3.2.0',
'news' => '3.2.0-0.0.0',
),
'conflicts' => array(),
'suggests' => array(),
Expand Down
16 changes: 8 additions & 8 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@

// Hide not needed fields in FormEngine
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass']['eventnews']
= 'GeorgRinger\\Eventnews\\Hooks\\FormEngineHook';
= \GeorgRinger\Eventnews\Hooks\FormEngineHook::class;

// Update flexforms
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Hooks/BackendUtility.php']['updateFlexforms']['eventnews']
= 'GeorgRinger\\Eventnews\\Hooks\\BackendUtility->update';
= \GeorgRinger\Eventnews\Hooks\BackendUtility::class . '->update';

$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['GeorgRinger\\News\\Hooks\\PageLayoutView']['extensionSummary']['eventnews']
= 'GeorgRinger\\Eventnews\\Hooks\\PageLayoutView->extensionSummary';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news'][\GeorgRinger\News\Hooks\PageLayoutView::class]['extensionSummary']['eventnews']
= \GeorgRinger\Eventnews\Hooks\PageLayoutView::class . '->extensionSummary';

// Extend the query
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Domain/Repository/AbstractDemandedRepository.php']['findDemanded']['eventnews']
= 'EXT:eventnews/Classes/Hooks/AbstractDemandedRepository.php:GeorgRinger\\Eventnews\\Hooks\\AbstractDemandedRepository->modify';
= \GeorgRinger\Eventnews\Hooks\AbstractDemandedRepository::class . '->modify';

$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][\GeorgRinger\Eventnews\Backend\FormDataProvider\EventNewsRowInitializeNew::class] = [
'depends' => [
Expand All @@ -44,10 +44,10 @@
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Model/News'][] = 'eventnews';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Controller/NewsController'][] = 'eventnews';

\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
'GeorgRinger\\News\\Domain\\Service\\NewsImportService',
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
\GeorgRinger\News\Domain\Service\NewsImportService::class,
'postHydrate',
'GeorgRinger\\Eventnews\\Aspect\\NewsImportAspect',
\GeorgRinger\Eventnews\Aspect\NewsImportAspect::class,
'postHydrate'
);

Expand Down

0 comments on commit 533d37a

Please sign in to comment.