DigiComp.Sequence/Classes/DigiComp/Sequence/Command/SequenceCommandController.php
2014-04-07 15:25:16 +02:00

34 lines
909 B
PHP

<?php
namespace DigiComp\Sequence\Command;
/* *
* This script belongs to the FLOW3 package "DigiComp.Sequence". *
* *
* */
use Doctrine\DBAL\DBALException;
use TYPO3\Flow\Annotations as Flow;
/**
* A SequenceNumber generator (should be DB-agnostic)
*
* @Flow\Scope("singleton")
*/
class SequenceCommandController extends \TYPO3\Flow\Cli\CommandController {
/**
* @var \DigiComp\Sequence\Service\SequenceGenerator
* @Flow\Inject
*/
protected $sequenceGenerator;
/**
* Sets minimum number for sequence generator
*
* @param int $to
* @param string $type
*/
public function advanceCommand($to, $type) {
$this->sequenceGenerator->advanceTo($to, $type);
}
}