This line is recreating the IndexController
very time.
$this->object_factory->build_controller("index",$this->parameters);
When you create your index_controller
via your object factory (line above) the new Index_Controller
makes a call to varify_controller
as this is defined within the __construct()
(executed automatically when the Index_Controller
is first instantiated).
varify_controller()
contains yet another call to build_controller("index",$this->parameters);
so we are then back to the beginning, endlessly creating new index controllers until you exceed the memory limit.
You can avoid these issues in the future by using the constructor for constructing the object. This should only include performing tasks that are need to get the object ready to be used, i.e. setting object properties or resolving object arguments.