Project

General

Profile

Bug #24279 ยป fluidtemplate_cobj.diff

Administrator Admin, 2010-12-02 21:02

View differences:

typo3/sysext/cms/tslib/content/class.tslib_content_fluidtemplate.php (Arbeitskopie)
/**
* 1. initializing Fluid StandaloneView and setting configuration parameters
**/
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView', $this->cObj);
// fetch the Fluid template
$file = isset($conf['file.'])
? $this->cObj->stdWrap($conf['file'], $conf['file.'])
typo3/sysext/fluid/Classes/View/StandaloneView.php (Arbeitskopie)
/**
* Constructor
*/
public function __construct() {
public function __construct(tslib_cObj $contentObject=NULL) {
if (!t3lib_extMgm::isLoaded('extbase')) {
return 'In the current version you still need to have Extbase installed in order to use the Fluid Standalone view!';
}
......
$this->injectObjectManager(t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager'));
$this->setRenderingContext($this->objectManager->create('Tx_Fluid_Core_Rendering_RenderingContext'));
$configurationManager = $this->objectManager->get('Tx_Extbase_Configuration_ConfigurationManager');
$configurationManager->setContentObject($contentObject);
$request = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Request');
$request->injectConfigurationManager($configurationManager);
$request->setRequestURI(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'));
$request->setBaseURI(t3lib_div::getIndpEnv('TYPO3_SITE_URL'));
$uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
$uriBuilder->injectConfigurationManager($configurationManager);
$uriBuilder->setRequest($request);
$controllerContext = $this->objectManager->create('Tx_Extbase_MVC_Controller_ControllerContext');
    (1-1/1)