src/Assets.php
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;
    }
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;
    }
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 ; }
set the file system

@param object    Instance of Symfony filesystem
@throws  \InvalidArgumentException
set the file system