Skip to content

Commit

Permalink
added ability to disable certain commands
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Sep 25, 2014
1 parent 56adb60 commit 0ea672e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/ElFinderConfigurationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ public function getConfiguration($instance)
$path = $parameter['path'];

$driver = isset($parameter['driver']) ? $parameter['driver'] : null;

$driverOptions = array(
'driver' => $parameter['driver'],
'service' => $driver,
'disabled' => $parameter['disabled'],
'path' => $path . '/',
'URL' => isset($parameter['url']) && $parameter['url']
? strpos($parameter['url'], 'http') === 0
Expand Down
4 changes: 4 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function getConfigTreeBuilder()
->thenInvalid('Invalid filesystem driver "%s"')
->end()
->defaultValue('LocalFileSystem')->end()
->arrayNode('disabled')
->prototype('scalar')->end()
->defaultValue(array())
->end()
->scalarNode('path')->defaultValue('')->end()
->scalarNode('url')->end()
->booleanNode('showhidden')->defaultFalse()->end()
Expand Down

0 comments on commit 0ea672e

Please sign in to comment.