filesystem = $filesystem; } public function create(): Logger { $handler = new Handler($this->filesystem); return new Logger([$handler]); } }