Help for this page

Select Code to Download


  1. or download this
    sub create_with_roles
    {
        my ($class, $roles, %args) = @_;
    ...
        Moose::Util::ensure_all_roles( $class, @$roles );
        return $class->new( %args );
    }
    
  2. or download this
    my $app = MyApp->create_with_roles(
        [qw( List Of Role Names )],
        %constructor_arguments
    );