我将通过 ZfcUser了解有关 Zend Framework 2 中模块的更多信息。在Module.php 中,您可以看到
'invokables' => array(
'ZfcUser\Authentication\Adapter\Db' => 'ZfcUser\Authentication\Adapter\Db',
'ZfcUser\Authentication\Storage\Db' => 'ZfcUser\Authentication\Storage\Db',
'ZfcUser\Form\Login' => 'ZfcUser\Form\Login',
'zfcuser_user_service' => 'ZfcUser\Service\User',
'zfcuser_register_form_hydrator' => 'Zend\Stdlib\Hydrator\ClassMethods',
),
现在,给类一个真正的缩写,比如“zfcuser_user_service”和它们的完全限定名有什么区别?我认为,没有技术差异,但也许有一个约定如何命名可调用对象,因为 ZF 依赖于它们,如何命名它们?