NAME

Plasp::State - Role for initializing State objects: $Session and $Application

SYNOPSIS

  package Plasp;

  use Moo;

  with 'Plasp::State'

  sub method {
      my $session = shift->Session;
  }

DESCRIPTION

This role is mainly consumed by the Plasp class in order to instantiate State objects in the ASP object.

Attributes

ApplicationClass

A string referencing the class to use to instatiate a new $Application object. Defaults to 'Plasp::Application'.

ApplicationConfig

A hash reference to pass into the constructor of the Application class. Defaults to an empty hash reference.

Application

A reference to the actual $Application global object. Defaults to Plasp::Application->new.

SessionClass

A string referencing the class to use to instatiate a new $Application object. Defaults to 'Plasp::Session'.

ApplicationConfig

A hash reference to pass into the constructor of the Application class. Defaults to an empty hash reference.

Session

A reference to the actual $Session global object. Defaults to Plasp::Session->new.

SEE ALSO