[TYPO3-mvc] Using configuration in schedular tasks

Henjo Hoeksma me at henjohoeksma.nl
Mon Jan 30 23:11:28 CET 2012


Which I tried as well - to no avail. Thanks though ;-)

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Mon, Jan 30, 2012 at 23:05, Alexander Dick <typo3 at dick.at> wrote:

> PS: $this->request might not be available because you are in cli mode;
> just substitute it with the appropriate strings.
>
> Am 30.01.2012 23:03, schrieb Alexander Dick:
>
>  Hi,
>>
>> I had the same problem in an Extbase Backend Module and I figured out
>> how to get the settings manually - maybe this also works for you:
>>
>> $configurationManager =
>> t3lib_div::makeInstance('Tx_**Extbase_Configuration_**
>> BackendConfigurationManager');
>>
>> $this->settings = $configurationManager->**getConfiguration(
>> $this->request->**getControllerExtensionName(), // ExtensionKey
>> $this->request->getPluginName(**) //PluginName
>> );
>>
>>
>> cheers
>> Alex
>>
>> Am 30.01.2012 22:57, schrieb Henjo Hoeksma:
>>
>>> Hi list,
>>>
>>> I need to access $this->settings from a schedular task. That said, when
>>> using the scheduler the $this->settings array is empty.
>>>
>>> What is the best way to load that?
>>>
>>> Thanks in advance for your reply.
>>>
>>> Kind regards,
>>>
>>> Henjo
>>>
>>> Problems are small because we learned how to deal with them.
>>> Problems are big because we need to learn how to deal with them.
>>>
>> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list