[Bps-public-commit] r16064 - in Prophet/branches/dispatcher: lib/Prophet

sartak at bestpractical.com sartak at bestpractical.com
Thu Sep 25 15:34:43 EDT 2008


Author: sartak
Date: Thu Sep 25 15:34:42 2008
New Revision: 16064

Modified:
   Prophet/branches/dispatcher/   (props changed)
   Prophet/branches/dispatcher/lib/Prophet/CLIContext.pm

Log:
 r72464 at onn:  sartak | 2008-09-25 15:26:50 -0400
 app_handle must be required, since we don't have an app_class method


Modified: Prophet/branches/dispatcher/lib/Prophet/CLIContext.pm
==============================================================================
--- Prophet/branches/dispatcher/lib/Prophet/CLIContext.pm	(original)
+++ Prophet/branches/dispatcher/lib/Prophet/CLIContext.pm	Thu Sep 25 15:34:42 2008
@@ -4,14 +4,11 @@
 use Params::Validate;
 
 has app_handle => (
-    is      => 'rw',
-    isa     => 'Prophet::App',
-    lazy    => 1,
-    handles => [qw/handle resdb_handle config/],
+    is       => 'rw',
+    isa      => 'Prophet::App',
+    handles  => [qw/handle resdb_handle config/],
     weak_ref => 1,
-    default => sub {
-        return $_[0]->app_class->new;
-    },
+    required => 1,
 );
 
 has uuid => (



More information about the Bps-public-commit mailing list