Skip to content

Commit

Permalink
obey trash hash param
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Dec 1, 2024
1 parent 87d5f44 commit 7d146a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/Configuration/ElFinderConfigurationProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace FM\ElfinderBundle\Configuration;

/**
* Interface ElFinderConfigurationProviderInterface.
*/
interface ElFinderConfigurationProviderInterface
{
public function getConfiguration(string $instance): array;
Expand Down
1 change: 1 addition & 0 deletions src/Configuration/ElFinderConfigurationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function getConfiguration(string $instance): array
'archiveMimes' => $parameter['archive_mimes'],
'archivers' => $parameter['archivers'],
'fileMode' => $parameter['fileMode'],
'trashHash' => $parameter['trash_hash'],
];

if (null !== $parameter['quarantine']) {
Expand Down
4 changes: 4 additions & 0 deletions tests/Configuration/ElFinderConfigurationReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private function getConfigurationReader($attributesObject)
'archivers' => '',
'fileMode' => '',
'quarantine' => null,
'trash_hash' => null,
],
],
],
Expand Down Expand Up @@ -169,6 +170,7 @@ private function getConfigurationReader($attributesObject)
'archivers' => '',
'fileMode' => '',
'quarantine' => null,
'trash_hash' => null,
],
],
],
Expand Down Expand Up @@ -223,6 +225,7 @@ private function getConfigurationReader($attributesObject)
'archivers' => '',
'fileMode' => '',
'quarantine' => null,
'trash_hash' => null,
],
],
],
Expand Down Expand Up @@ -277,6 +280,7 @@ private function getConfigurationReader($attributesObject)
'archivers' => '',
'fileMode' => '',
'quarantine' => null,
'trash_hash' => null,
],
],
],
Expand Down
3 changes: 0 additions & 3 deletions tests/DependencyInjection/ConfigurationLoadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;

/**
* Class ConfigurationLoadTest.
*/
class ConfigurationLoadTest extends AbstractExtensionConfigurationTestCase
{
protected function getContainerExtension(): ExtensionInterface
Expand Down

0 comments on commit 7d146a6

Please sign in to comment.