Hi guys,

same issue here: first i was happy to see that oxutilsobject is actually allowed to be extended by modules (s. oxutilsobject::getInstance() //allow modules ;) ), but oxconfig instance getter within bootstrap has an init() call needs to instantiate oxutilsbject already (oxUtilsFile is the first which goes through the factory, s. backtrace below), consequence: oxutilsobject is intantiated before oxconfig is fully loaded and so oxutilsobject::_makeSafeModuleClassParents() could never be reached (aModules missing). And by the way couldn't even work properly cause _makeSafeMouleClassParents itself calls oxconfig::getConfigParam. Imho a bit bad design as config and factory are in a way strongly coupled here. I agree with Christopher, this is currently a blocker for several core extension needs. What is planned to resolve this structural issue? https://bugs.oxid-esales.com/view.php?id=1097 gives no informative hints so far.

[backtrace oxutilsobject::getClassName() first oxutilsobject call:
#0 oxUtilsObject->getClassName(oxutilsobject) called at [core/oxutilsobject.php:103]
#1 oxUtilsObject->oxNew(oxUtilsObject) called at [core/oxutilsobject.php:67]
#2 oxUtilsObject::getInstance() called at [core/oxfunctions.php:247]
#3 oxNew(oxUtilsFile) called at [core/oxutilsfile.php:93]
#4 oxUtilsFile::getInstance() called at [core/oxconfig.php:317]
#5 oxConfig->init() called at [core/oxconfig.php:433]
#6 oxConfig::getInstance() called at [index.php:71]]

Thx & best regards
Thomas

Philipp Grashoff schrieb:
Hi,

AFAIK this issue has already been discussed, but no final solution made. There 
is an accordant bugtrack entry:
https://bugs.oxid-esales.com/view.php?id=1097

Best regards
Philipp Grashoff

-----Ursprüngliche Nachricht-----
Von: [email protected] 
[mailto:[email protected]] Im Auftrag von Christopher 
Simon
Gesendet: Montag, 20. Juli 2009 12:52
An: [email protected]
Betreff: [oxid-dev-general] unnecessary unextendable oxsession

Hi there,

there are a few lines of code in oxid, which cause a lot of pain for me.

For my current project I need to extend oxsession. The problem: It's
impossible, because of this part of oxconfig from line 394 to 399:


             $this->getSession()->start();

             $sShopID = $this->getShopId();

             // load now
             $this->_loadVarsFromDb( $sShopID );

The session creation happens before the aModules variable is loaded from
database. This is done because of EE functionality, to load mall
specific config params on the basis of the shopId which is stored in
session. But this causes, that oxsession can not be overwritten, because
it's instantiated once via oxNew in a singleton, and than (which is the
purpose of a singleton) never again.

This is twice annoying for me, because it's a blocker and in CE and PE,
these lines are nearly pointless, because it's EE functionality.

This problem affects oxDb too.

Do i have any other chance to extend oxsession or (if not) will there be a chance to extend oxsession in the future?

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general


--
----------------------------
superReal GmbH
Agentur für Neue Kommunikation
----------------------------
Borselstraße 16 f
22765 Hamburg
T: 040 / 28 51 39 30
http://www.superReal.de

Geschäftsführer: Oliver Cloppenburg, Volker Will
Amtsgericht Hamburg HRA 74092

+++ superReal gewinnt FWA für Closed – http://www.closed.com +++

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to