ApacheMP2.pm 412 Bytes
Newer Older
1 2 3 4
package Lemonldap::NG::Handler::ApacheMP2;

use strict;

5
use Lemonldap::NG::Handler::ApacheMP2::Main;
6 7 8 9 10 11

our $VERSION = '2.0.0';

# PUBLIC METHODS

sub handler {
12 13 14 15 16
    shift if($#_);
    my $type = Lemonldap::NG::Handler::ApacheMP2::Main->checkType(@_);
    my $class = "Lemonldap::NG::Handler::ApacheMP2::$type";
    eval "require $class";
    die $@ if($@);
Xavier Guimard's avatar
Xavier Guimard committed
17 18
    my ($res) = $class->run(@_);
    return $res;
19 20 21
}

1;