mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-28 19:56:09 +01:00
Daniel Siepmann
c940ac4497
Do not introduce unnecessary changes into pull request for TYPO3 CMS 9 update. * Trim trailing whitespace. * Do not introduce blank line before namespace definition with this pull request. * Add posix new line at end of file.
27 lines
635 B
PHP
27 lines
635 B
PHP
<?php
|
|
namespace Codappix\SearchCore;
|
|
|
|
use Codappix\SearchCore\Compatibility\ExtensionConfigurationInterface;
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
|
|
|
class Bootstrap
|
|
{
|
|
/**
|
|
* @return object|ObjectManager
|
|
*/
|
|
public static function getObjectManager()
|
|
{
|
|
return GeneralUtility::makeInstance(ObjectManager::class);
|
|
}
|
|
|
|
/**
|
|
* @return ExtensionConfigurationInterface
|
|
*/
|
|
public static function getExtensionConfiguration()
|
|
{
|
|
return static::getObjectManager()->get(
|
|
ExtensionConfigurationInterface::class
|
|
);
|
|
}
|
|
}
|