Browse Source

* connect LDV::Email to app

master
Alex 'AdUser' Z 10 years ago
parent
commit
40a7bee866
  1. 6
      lib/LDV.pm

6
lib/LDV.pm

@ -16,6 +16,12 @@ sub startup {
$self->app->mode('production'); $self->app->mode('production');
$self->app->secret($self->app->config->{secret}); $self->app->secret($self->app->config->{secret});
$self->app->attr(email => sub {
require LDV::Email;
my $email = LDV::Email->new($self->app->config->{email} // {});
return $email;
});
$self->app->attr(ldap => sub { $self->app->attr(ldap => sub {
require LDV::LDAP; require LDV::LDAP;
my $ldap = LDV::LDAP->new($self->app->config->{ldap}); my $ldap = LDV::LDAP->new($self->app->config->{ldap});

Loading…
Cancel
Save