diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/presque.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/presque.pm b/lib/presque.pm index e173b0d..830b0f6 100644 --- a/lib/presque.pm +++ b/lib/presque.pm @@ -6,6 +6,8 @@ use AnyEvent::Redis; use Moose; extends 'Tatsumaki::Application'; +use presque::Service; + has config => ( is => 'rw', isa => 'HashRef', @@ -49,8 +51,8 @@ sub app { '/' => h('presque::IndexHandler'), ] ); - $self->config(delete $args{config}); + $self->add_service(presque::Service->new(redis => $self->redis)); $self; } |