view _test/temp.pl @ 406:f23fcb19d3c1 ref20150831

implemented ServicesBag
author cin
date Mon, 31 Aug 2015 20:22:16 +0300
parents 38cb0b80e88e
children c6e90e02dd17
line wrap: on
line source

#!/usr/bin/perl
use strict;

use YAML::XS;
$YAML::XS::DumpCode = 1;

my $conf = {
	'@include' => [qw(security view)],
	runtime => {
		type => 'IMPL::Web::Application',
		params => {
			handlers => {depdendency => 'filters'}
		} 
	},
	filters => [
		{ type => 'IMPL::Web::CookieAuth' },
		{ type => 'IMPL::Web::Security' },
		{ type => 'IMPL::Web::LocaleHandler',
			params => {
				locales => [
					'en-US',
					'ru-RU'
				],
				default => 'en-US'
			}
		},
		{ type => 'IMPL::Web::ContentNegotiation' },
		{ type => 'IMPL::Web::RestController' }
	],
	custom => {
		factory => sub { return "hi!" }
	}
};

print Dump($conf);

1;