summaryrefslogtreecommitdiffstats
path: root/Kernel/System/Cache/FakeVerifyFileStorable.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/System/Cache/FakeVerifyFileStorable.pm')
-rw-r--r--Kernel/System/Cache/FakeVerifyFileStorable.pm28
1 files changed, 28 insertions, 0 deletions
diff --git a/Kernel/System/Cache/FakeVerifyFileStorable.pm b/Kernel/System/Cache/FakeVerifyFileStorable.pm
new file mode 100644
index 0000000..183c1af
--- /dev/null
+++ b/Kernel/System/Cache/FakeVerifyFileStorable.pm
@@ -0,0 +1,28 @@
+package Kernel::System::Cache::FakeVerifyFileStorable;
+
+use strict;
+use warnings;
+
+our @ObjectDependencies = (
+ 'Kernel::System::Cache::FileStorable',
+);
+
+use parent 'Kernel::System::Cache::FileStorable';
+
+sub Get {
+ my ( $Self, %Param ) = @_;
+
+ # check needed stuff
+ if ( !defined $Param{Type} ) {
+ $Kernel::OM->Get('Kernel::System::Log')->Log(
+ Priority => 'error',
+ Message => "Need Type!"
+ );
+ return;
+ }
+
+ return 'custom' if $Param{Type} eq 'PackageVerification';
+ return Kernel::System::Cache::FileStorable::Get(@_);
+}
+
+1;