#857: Factor out creation of frequently used classes from factories.xml to
separate method
-------------------+--------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: high | Milestone: 1.0
Component: core | Version:
Severity: minor | Keywords:
Has_patch: 0 |
-------------------+--------------------------------------------------------
{{{AgaviContext::createInstanceFor($name)}}} (non-static!) which does sth
like:
{{{
#!php
<?php
$fcfi = $this->context->getFactoryInfo('filter_chain');
$filterChain = new $fcfi['class']();
$filterChain->initialize($this->context, $fcfi['parameters']);
?>
}}}
Will help reduce code duplication
--
Ticket URL: <http://trac.agavi.bitxtender.net/ticket/857>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets