Hello,
How to autoload Symfony classes in the app based on Zend Framework? Can I push some kind of Symfony autoloader to the Zend's Autoloader?
I need to use some of the components like output escaper or dependency injection classes.
Hello,
How to autoload Symfony classes in the app based on Zend Framework? Can I push some kind of Symfony autoloader to the Zend's Autoloader?
I need to use some of the components like output escaper or dependency injection classes.
Zend's autoloader can accept multiple autoloaders:
$autoloader->pushAutoloader(array('ezcBase', 'autoload'), 'ezc');
The above is straight from the manual and shows how to include the autoloader of ezComponents (now Zeta Components) as an additional loader. You can try to go this route by providing Sfs Autoloader.
However, Sf DI component can be integrated into Zend Framework more easily: