protected function getTemplate($template)
    {
        $template = config("imagecache.templates.{$template}");

        switch (true) {
            // closure template found
            case is_callable($template):
                return $template;

            // filter template found
            case class_exists($template):
                return new $template;

            default:
                // template not found
                abort(404);
                break;
        }
    }
protected function getTemplate($template)
    {
        $template = config("imagecache.templates.{$template}");

        switch (true) {
            // closure template found
            case is_callable($template):
                return $template;

            // filter template found
            case class_exists($template):
                return new $template;

            default:
                // template not found
                abort(404);
                break;
        }
    }
protected function getTemplate ( $ template ) { $ template = config ( "imagecache.templates.{$template}" ) ; switch ( true ) { // closure template found case is_callable ( $ template ) : return $ template ; // filter template found case class_exists ( $ template ) : return new $ template ; default : // template not found abort ( 404 ) ; break ; } }
Returns corresponding template object from given template name

@param  string $template
@return mixed
Returns corresponding template object from given template name