如何在两个不同设置的zend框架中共享公共模块


How to share common module in two different set up of zend framework ?

我有两种不同的zend框架设置,有些模块在两种设置中都很常见,所以我如何在两种设置中访问该commmon模块,这样我就可以轻松管理两个模块,只需一次更改,请为我建议最佳解决方案

如果您在同一台计算机上托管两个应用程序,并且在 Linux/UNIX/MacOS 下,您只需从一个应用程序中的模块目录符号链接到另一个应用程序即可。

这不是一个理想的解决方案。最好在开发计算机上安装它,并部署源代码的两个副本。

如果您使用的是 CI,则管理起来非常容易。但话又说回来 - 模块可能相同,但不同的应用程序可能有不同的设置等等。你应该非常仔细地考虑这一点。

array( "应用程序", "学说模块", "教义", "商人",

),
'module_listener_options' => array(
    'config_glob_paths'    => array(
        'config/autoload/{,*.}{global,local}.php',
    ),
    'module_paths' => array(
        './module',
        '../vendor',
        '../commonmodule(with that directory path)',
    ),
),

(;