[TYPO3-mvc] Scheduler & ext_base?

Martin Kutschker masi-no at spam-typo3.org
Fri Jul 23 08:59:07 CEST 2010


Am 23.07.2010 08:39, schrieb Martin Kutschker:
> Am 22.07.2010 21:42, schrieb Braulio J. Solano-Rojas:
>> Hello.
>>
>> I would like to know if it is possible to dispatch a controller inside a task (before I try).  I
>> would like to do something like this:
> 
> A controller (in MVC) handles the user/client input. But currently Extbase has only a web (HTTP)
> controller, so your approach is bound to be a hack. There have been attempts to use Extbase from the
> CLI, so it might be possible to fake a web request for use in a scheduler task. Though conceptually
> this is an abuse ;)

But to give some advice: I would move the shared code into a "service" object that is used from both
the controller and the scheduler task.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list