eZ\Publish\Core\MVC\Symfony\Cache\Http\LocationAwareStore::getFilesystem PHP Method

getFilesystem() public method

public getFilesystem ( ) : Symfony\Component\Filesystem\Filesystem
return Symfony\Component\Filesystem\Filesystem
    public function getFilesystem()
    {
        if (!isset($this->fs)) {
            $this->fs = new Filesystem();
        }
        return $this->fs;
    }

Usage Example

 public function testSetFilesystem()
 {
     $fs = new Filesystem();
     $this->store->setFilesystem($fs);
     $this->assertSame($fs, $this->store->getFilesystem());
 }