search_core/Classes/Bootstrap.php

28 lines
635 B
PHP
Raw Normal View History

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