The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dezi::Admin::Config - Dezi administration UI configuration

SYNOPSIS

 use Dezi::Admin::Config;

 my $dac = Dezi::Admin::Config->new(
     user_config => {
         username => 'myuser',
         password => 'secret',
         auth_realm => 'the dezi admin area',
         extjs_url  => '//uri.for/extjs/4.1.x',
         debug      => 1,
     },
     searcher => $dezi_server,
     base_uri => 'http://yourserver/dezi',
 );

DESCRIPTION

Dezi::Admin::Config is used internally by Dezi::Admin to instantiate the various components (UI, API, etc) that make up the application.

METHODS

new( args )

Returns a new Config object. args should be a hash with keys including:

user_config

Hashref as passed to Dezi::Config->new(). May contain a key called admin with values like:

username
password
auth_realm
debug
extjs_uri
searcher

A Dezi::Server-like instance.

base_uri

The base URI for the Dezi instance.

authenticator

The authenticator() method will return a CODE ref for passing to Plack::Middleware::Auth::Basic.

ui_server

Returns an instance of Dezi::Admin::UI.

ui_static_path

File path to where static assets are stored. These include .css and .js files.

api_server

Returns an instance of Dezi::Admin::API.

as_hash

Returns the object as a plain Perl hash of key/value pairs.

AUTHOR

Peter Karman, <karman at cpan.org>

BUGS

Please report any bugs or feature requests to bug-dezi-admin at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-Admin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dezi::Admin

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2013 Peter Karman.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.