mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 01:36:11 +01:00
28 lines
No EOL
635 B
PHP
28 lines
No EOL
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
|
|
);
|
|
}
|
|
} |