feat: integrated OAuth2 server
This commit is contained in:
@@ -13,8 +13,8 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
#[AsCommand(
|
||||
name: 'app:cleanup:xml-dumps',
|
||||
description: 'Removes XML dumps of BPN requests/responses older than a week')
|
||||
]
|
||||
description: 'Removes XML dumps of BPN requests/responses older than a week'
|
||||
)]
|
||||
class CleanupXMLDumpsCommand extends Command
|
||||
{
|
||||
public function __construct(
|
||||
@@ -33,11 +33,11 @@ class CleanupXMLDumpsCommand extends Command
|
||||
$files = $this
|
||||
->xmlDump
|
||||
->listContents('.')
|
||||
->filter(fn(StorageAttributes $attributes) => $attributes->isFile() && $attributes->lastModified() < $maxDate)
|
||||
->map(fn(StorageAttributes $attributes) => $attributes->path())
|
||||
->filter(fn (StorageAttributes $attributes) => $attributes->isFile() && $attributes->lastModified() < $maxDate)
|
||||
->map(fn (StorageAttributes $attributes) => $attributes->path())
|
||||
->toArray();
|
||||
} catch (FilesystemException $e) {
|
||||
$output->writeln('<error>' . $e->getMessage() . '</error>');
|
||||
$output->writeln('<error>'.$e->getMessage().'</error>');
|
||||
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user