summaryrefslogtreecommitdiffstats
path: root/Kernel/System/Cache/FakeVerifyFileStorable.pm
blob: 183c1af9e874d12651cb83c54678c626cbd0847c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;