injectableFactory = $injectableFactory; $this->dateTime = $dateTime; } public function create(bool $skipAcl = false, ?string $timezone = null) : Htmlizer { $with = []; if ($skipAcl) { $with['acl'] = null; } if ($timezone) { $dateTime = clone($this->dateTime); $dateTime->setTimezone($timezone); $with['dateTime'] = $dateTime; } return $this->injectableFactory->createWith(Htmlizer::class, $with); } }