public function setFileSystem($fileSystem)
    {
        if (! is_object($fileSystem) || ! is_a($fileSystem, 'Symfony\Component\Filesystem\Filesystem')) {
            throw new \InvalidArgumentException(
                'The File System was not a valid object.'
            );
        }
        $this->fileSystem = $fileSystem;
    }