diff --git a/Configuration/ElFinderConfigurationReader.php b/Configuration/ElFinderConfigurationReader.php index 4139f80..4fe98b5 100644 --- a/Configuration/ElFinderConfigurationReader.php +++ b/Configuration/ElFinderConfigurationReader.php @@ -172,11 +172,12 @@ private function configureFlysystem($opt, $adapter) 'password' => $opt['ftp']['password'], /** optional config settings */ - 'port' => $opt['ftp']['port'], - 'root' => $opt['ftp']['root'], - 'passive' => $opt['ftp']['passive'], - 'ssl' => $opt['ftp']['ssl'], - 'timeout' => $opt['ftp']['timeout'] + 'port' => $opt['ftp']['port'], + 'root' => $opt['ftp']['root'], + 'passive' => $opt['ftp']['passive'], + 'ssl' => $opt['ftp']['ssl'], + 'timeout' => $opt['ftp']['timeout'], + 'directoryPerm' => $opt['ftp']['directoryPerm'] ); $filesystem = (!$opt['ftp']['sftp']) ? new Filesystem(new Ftp($settings)): new Filesystem(new SftpAdapter($settings)); break; diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index fa273b7..f0e1343 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -239,6 +239,7 @@ private function createFlysystemNode() ->booleanNode('ssl')->defaultTrue()->end() ->integerNode('timeout')->defaultValue(30)->end() ->scalarNode('root')->defaultValue('/')->end() + ->integerNode('directoryPerm')->defaultValue(0744)->end() ->end() ->end() ->arrayNode('aws_s3_v2')