2018-10-30 11:13:56 +01:00
|
|
|
<?php
|
|
|
|
namespace Codappix\SearchCore;
|
|
|
|
|
2018-10-30 11:30:06 +01:00
|
|
|
use Codappix\SearchCore\Compatibility\ExtensionConfigurationInterface;
|
2018-10-30 11:13:56 +01:00
|
|
|
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);
|
|
|
|
}
|
2018-10-30 11:30:06 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return ExtensionConfigurationInterface
|
|
|
|
*/
|
|
|
|
public static function getExtensionConfiguration()
|
|
|
|
{
|
|
|
|
return static::getObjectManager()->get(
|
|
|
|
ExtensionConfigurationInterface::class
|
|
|
|
);
|
|
|
|
}
|
2019-05-05 09:53:00 +02:00
|
|
|
}
|