src/filesystem/FilesystemManager.php
public function createLocalAdapter(array $config)
    {
        $permissions = $config['permissions'] ?? [];
        $root = Yii::getAlias($config['root']);

        $links = ($config['links'] ?? null) === 'skip'
            ? LocalAdapter::SKIP_LINKS
            : LocalAdapter::DISALLOW_LINKS;

        return $this->adapt($this->createFlysystem(new LocalAdapter(
            $root, LOCK_EX, $links, $permissions
        ), $config));
    }
public function createLocalAdapter(array $config)
    {
        $permissions = $config['permissions'] ?? [];
        $root = Yii::getAlias($config['root']);

        $links = ($config['links'] ?? null) === 'skip'
            ? LocalAdapter::SKIP_LINKS
            : LocalAdapter::DISALLOW_LINKS;

        return $this->adapt($this->createFlysystem(new LocalAdapter(
            $root, LOCK_EX, $links, $permissions
        ), $config));
    }
public function createLocalAdapter ( array $ config ) { $ permissions = $ config [ 'permissions' ] ?? [ ] ; $ root = Yii :: getAlias ( $ config [ 'root' ] ) ; $ links = ( $ config [ 'links' ] ?? null ) === 'skip' ? LocalAdapter :: SKIP_LINKS : LocalAdapter :: DISALLOW_LINKS ; return $ this -> adapt ( $ this -> createFlysystem ( new LocalAdapter ( $ root , LOCK_EX , $ links , $ permissions ) , $ config ) ) ; }
Create an instance of the local adapter.

@param  array $config
@return \yuncms\filesystem\Filesystem
Create an instance of the local adapter .