ama-team/php-projection-framework

View on GitHub
src/Filesystem/Factory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AmaTeam\Image\Projection\Filesystem;

use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use League\Flysystem\FilesystemInterface;

class Factory
{
    /**
     * @return FilesystemInterface
     */
    public static function create()
    {
        $adapter = new Local(getcwd());
        return new Filesystem($adapter);
    }
}