use strict;
use warnings;
-use base 'Reaction::UI::Controller::Root';
+
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Root'; }
use aliased 'Reaction::UI::ViewPort';
use aliased 'Reaction::UI::ViewPort::SiteLayout';
package ComponentUI::Controller::TestModel::Bar;
-use base 'Reaction::UI::Controller::Collection::CRUD';
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; }
__PACKAGE__->config(
model_name => 'TestModel',
package ComponentUI::Controller::TestModel::Baz;
-use base 'Reaction::UI::Controller::Collection::CRUD';
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; }
+
use ComponentUI::UI::ViewPort::Baz::ListView::Member;
__PACKAGE__->config(
package ComponentUI::Controller::TestModel::Foo;
-use base 'Reaction::UI::Controller::Collection::CRUD';
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; }
use aliased 'Reaction::UI::ViewPort::SearchableListViewContainer';
use aliased 'ComponentUI::TestModel::Foo::SearchSpec';
};
sub object : Chained('base') PathPart('id') CaptureArgs(1) {
- my ($self, $c, $object) = @_;
- $self->next::method($c, $object);
- # just as failing use case
+ my ($self, $c, $object) = @_;
+ $self->next::method($c, $object);
+ # just as failing use case
}
1;
package Reaction::UI::Controller;
-use base qw(Catalyst::Controller); # Reaction::Object);
-
use Reaction::Class;
use Scalar::Util 'weaken';
use namespace::clean -except => [ qw(meta) ];
+BEGIN { extends 'Catalyst::Controller'; }
+
has context => (is => 'ro', isa => 'Object', weak_ref => 1);
with(
'Catalyst::Component::InstancePerContext',
package Reaction::UI::Controller::Collection;
-use base 'Reaction::UI::Controller';
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller'; }
use aliased 'Reaction::UI::ViewPort::Collection::Grid';
package Reaction::UI::Controller::Collection::CRUD;
-use base 'Reaction::UI::Controller::Collection';
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Collection'; }
use aliased 'Reaction::UI::ViewPort::ListView';
package Reaction::UI::Controller::Collection::CRUD::Search;
-use parent 'Reaction::UI::Controller::Collection::CRUD';
+
use Reaction::Class;
+BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; }
use aliased 'Reaction::UI::ViewPort::SearchableListViewContainer';
sub setup_viewport {
my ($self, $c, $vp_args) = @_;
my $action_name = $c->stack->[-1]->name;
- my $vp = $self->action_viewport_map->{$action_name},
+ my $vp = $self->action_viewport_map->{$action_name};
my $args = $self->merge_config_hashes(
$vp_args || {},
$self->action_viewport_args->{$action_name} || {} ,
package Reaction::UI::Controller::Root;
-use base qw/Reaction::UI::Controller/;
use Reaction::Class;
use Reaction::UI::Window;
+BEGIN { extends 'Reaction::UI::Controller'; }
+
__PACKAGE__->config(
view_name => 'XHTML',
content_type => 'text/html',