possible spin dependency emanate php application


i'm experiencing i trust spin dependency emanate php application. greatfully let me know incorrect. here situation:



two classes, logmanager dbsession.



dbsession used correlate database, logmanager used record files. both widely used application. emanate an instance dbsession, contingency give an instance logmanager around constructor parameter. since dbsession infrequently record information file, logmanager instance this.



now, i wanted extend logmanager also record database table, rather calm file. naturally, benefit re-use existent classes, nonetheless i shortly satisfied brought an engaging situation.



dbsession already requires an instance logmanager construction. i wish re-use dbsession category logmanager, need an instance dbsession. i infer both demands? clearly, something contingency wrong approach.



how advise i repair this?



thanks advance, guys.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?