for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Staticus\FileSystem;
use League\Flysystem\Adapter\Local;
use Staticus\Config\ConfigInterface;
class LocalAdapterFactory
{
/**
* @var ConfigInterface
*/
protected $config;
public function __construct(ConfigInterface $config)
$this->config = $config;
}
public function __invoke()
$adapter = new Local(
$this->config->get('filesystem.adapters.' . Local::class . '.options.root'),
$this->config->get('filesystem.adapters.' . Local::class . '.options.writeFlags')
);
return $adapter;