public function __construct($outputDir, Filesystem $filesystem = null) { $this->outputDir = $outputDir; $this->filesystem = $filesystem ?: new Filesystem(); }