view Lib/IMPL/Config/Include.pm @ 240:abc7c26bf615

+Added ObjectFactory for templates with static members support *fixed web-resource model errors
author sergey
date Wed, 17 Oct 2012 17:41:29 +0400
parents d63f9a92d6d4
children
line wrap: on
line source

package IMPL::Config::Include;
use strict;
use warnings;
use IMPL::require {
    Conf => 'IMPL::Config',
    Exception => 'IMPL::Exception'
};


sub restore {
	my ($self,$data) = @_;
	
	die Exception->new("A file name is required") if ref $data || not $data;
	
	return Conf->spawn($data);
}

1;