From: Florian Ragwitz Date: Fri, 26 Dec 2008 00:40:13 +0000 (+0000) Subject: Turn the captured $app into a weak reference. X-Git-Tag: 5.8000_05~76 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8d4ef43119873eb6c0d2d10577e45559b5e57e91 Turn the captured $app into a weak reference. Right now that won't change anything, but it'll prevent problems when $app will be an instance. --- diff --git a/lib/Catalyst/Component/Role/CaptureApp.pm b/lib/Catalyst/Component/Role/CaptureApp.pm index 205370e..54da050 100644 --- a/lib/Catalyst/Component/Role/CaptureApp.pm +++ b/lib/Catalyst/Component/Role/CaptureApp.pm @@ -5,7 +5,7 @@ use namespace::clean -except => 'meta'; # Future - isa => 'ClassName|Catalyst' performance? # required => 1 breaks tests.. -has _application => (is => 'ro'); +has _application => (is => 'ro', weak_ref => 1); sub _app { (shift)->_application(@_) } override BUILDARGS => sub {