Symfony class autoload in Zend_Framework

How to autoload Symfony classes in a Zend Framework based application? Can I click some Symfony autoloader on the Zend autoloader?

I need to use some of the components, such as escaper output classes or dependencies.

+3
source share
1 answer

Zend autoloader can accept several autoloaders:

$autoloader->pushAutoloader(array('ezcBase', 'autoload'), 'ezc');

The above is directly from the manual and shows how to enable the ezComponents autoloader (now Zeta Components) as an additional loader. You can try to go this route by providing Sfs Autoloader.

+1

Source: https://habr.com/ru/post/1763247/


All Articles