public function __invoke(\DateTime $now) { $this->method->invoke($this->object); $this->timestampStorage->setTaskName($this->getName()); $this->timestampStorage->saveRunTime($now); $this->timestampStorage->setTaskName(); }
private function runDetectFormatMethod($route, $request) { $method = new Method($route, 'detectFormat'); $method->setAccessible(TRUE); return $method->invoke($route, $request); }