php - Composer dependecies in Prestashop per module -


in prestashop can write modules. have code framework independent , want reuse in other prestamodules , in other frameworks use.

so far good. solution put vendor folder , composer.json prestamodules libaries needed.

now comes problem (offcourse) duplicated namespaces conflict. there way around or should global vendor folder in root of presta (what want avoid @ cost, want decide when upgrade single module or not. vendors should per-module)

vendors can't per module if executed in same request. have use central vendor folder dependencies - or avoid using composer , try manage individual dependencies - same problem before: cannot have 2 versions of same class in code.

which 1 gets used? first code encounters, depending on how autoloading configured. assume "random" order - break code @ inconvenient time.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -