Project

General

Profile

Actions

Feature #69181

closed

CommandController validator

Added by Guy Couronné over 8 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2015-08-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hi,

Version : TYPO3 CMS 6.2.14

In Scheduler, I create a Task extending extbase/task (\TYPO3\CMS\Extbase\Scheduler\Task) with a progress bar (\TYPO3\CMS\Scheduler\ProgressProviderInterface) and an extbase/additionalFieldProvider (\TYPO3\CMS\Extbase\Scheduler\FieldProvider). In it, I call MemberCommandController->synchroniseMailChimpCommand. For avoiding a memory limit crash, I use a variable called $limit, to limit the number of members synchronised for each execution of the task.
As $limit is a argument of the task (as the memory is depending on the host machine), I would like to validate if it's an integer not empty (for avoiding "xyz" or "0" as limit).
However, I didn't find, in CommandController (\TYPO3\CMS\Extbase\Mvc\Controller\CommandController), any validatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver), as has AbstractController (\TYPO3\CMS\Extbase\Mvc\Controller\AbstractController).

I would like to know if it could be implemented direclty into the core (into CommandController or into another class like ValidatorCommandController) or if it's up to me to add this ?

Thank you.

Actions

Also available in: Atom PDF