From looking at the code I don't think its possible to have Zend_Application
use anything other than Zend_Controller_Front
.
When you run a Zend_Application, the following things happen:
Zend_Application::bootstrap()
runs
- The bootstrap process creates
Zend_Application_Bootstrap_Bootstrap
which sets up the resource loader and then loads the FrontController
resource
- The Frontcontroller resource is hardcoded to load
Zend_Controller_Front
(see Zend/Application/Resource/Frontcontroller::getFrontController()
)
The only way you may be able to change this behavior would be to register your own resource loader which could intercept the loading of the FrontController
resource which would load your Front Controller instead of the Zend Front Controller. Of course you would have to make sure your Front Controller supports every option the Zend Framework one does.
So the question is, why do you need to replace Zend_Controller_Front
with your own? Can't you set the appropriate options or create plugins to accomplish your goal?