I have modules with inter-dependencies, such as
MyVendor_MyModule1
:Account
MyVendor_MyModule2
:Account
MyVendor_MyModule1
:Auth
MyVendor_MyModule2
:Auth
MyVendor_MyModule1
:Config
MyVendor_MyModule2
:Config
Account
namespace contains common code for both MyModule1
and MyModule2
.
Currently, I am having a duplicate code in both modules.
I want to make Account
an independent module to reduce the code duplicacy.
How shall I move forward without messing with namespaces?
Edt:
To be exact: My current scenario is
\Cj\Amazon
is 1 module. I am planning to break it into two modules, i.e.Cj\Amazon\Importer
and\Cj\Amazon\Integration
.Both uses the same authentication which is
Cj\Amazon\Auth
. But in Magento, we are restricted to useVendor\Module
pattern.Is there any way two have multi modules with same namespaces i.e in
\Cj\Amazon\
?