Skip to content

Commit

Permalink
Moved controllerFactory to late instantiation in ControllerBuilder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas committed Jan 11, 2011
1 parent 6387a59 commit c4d770b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ufront/web/mvc/ControllerBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ class ControllerBuilder
{
packages = new List();
attributes = new List();

setControllerFactory(new DefaultControllerFactory(this, new DefaultDependencyResolver()));
}

public function getControllerFactory() : IControllerFactory
{
if (_controllerFactory == null)
_controllerFactory = new DefaultControllerFactory(this, DependencyResolver.current);

return _controllerFactory;
}

Expand Down

0 comments on commit c4d770b

Please sign in to comment.