Changeset 335
- Timestamp:
- 03/05/07 18:05:34 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/stubFrontController.php
r315 r335 11 11 'net.stubbles.ipo.request.stubWebRequest', 12 12 'net.stubbles.ipo.session.stubPHPSession', 13 'net.stubbles.ipo.response.stubBaseResponse', 13 14 'net.stubbles.util.stubRegistry', 14 15 'net.stubbles.util.xjconf.xjconf' … … 19 20 * @package stubbles 20 21 * @subpackage websites 21 * @todo finish :)22 22 */ 23 23 class stubFrontController extends stubBaseObject … … 100 100 $this->injectionMap->addInjection('stubRequest', $this->request); 101 101 102 if (stubRegistry::hasConfig('net.stubbles.ipo.session.name') == true) { 103 $sessionName = stubRegistry::getConfig('net.stubbles.ipo.session.name'); 104 } else { 105 $sessionName = 'stubSID'; 106 } 102 107 if (stubRegistry::hasConfig('net.stubbles.ipo.session.class') == true) { 103 108 $fqClassName = stubRegistry::getConfig('net.stubbles.ipo.session.class'); 104 109 stubClassLoader::load($fqClassName); 105 110 $className = stubClassLoader::getNonQualifiedClassName($fqClassName); 106 $this->session = new $className( );111 $this->session = new $className($sessionName); 107 112 if (($this->session instanceof stubSession) == false) { 108 113 throw new stubException('Configured session class is not an instance of stubSession.'); 109 114 } 110 115 } else { 111 $this->session = new stubPHPSession( );116 $this->session = new stubPHPSession($sessionName); 112 117 } 113 118 $this->injectionMap->addInjection('stubSession', $this->session); trunk/src/main/php/net/stubbles/websites/stubXJConfPageFactory.php
r312 r335 30 30 /** 31 31 * constructor 32 *33 * @param stubXJConfLoader $classLoader class loader to use for loading unloaded classes34 32 */ 35 public function __construct( stubXJConfLoader $classLoader)33 public function __construct() 36 34 { 37 35 if (null == self::$xjconf) { 38 self::$xjconf = new stubXJConfFacade(array('http://stubbles.net/websites' => $classLoader));36 self::$xjconf = new stubXJConfFacade(array('http://stubbles.net/websites' => stubXJConfLoader::getInstance())); 39 37 self::$xjconf->setDefinitionFile(stubFactory::getResourceURI('xjconf/websites.xml')); 40 38 } trunk/src/main/resources/xjconf/processors.xml
r279 r335 2 2 <defines> 3 3 <namespace uri="http://stubbles.net/websites"> 4 <tag name="defaultResolver" type="net.stubbles.websites.processors.stubDefaultProcessorResolver" keyAttribute="resolver"> 5 <attribute name="default" type="string" /> 6 </tag> 7 <tag name="processor" type="string" > 8 <setterMethod name="addProcessor"> 4 <tag name="defaultResolver" type="net.stubbles.websites.processors.stubDefaultProcessorResolver" key="resolver"> 5 <attribute name="default" type="string" setter="setDefaultProcessor" /> 6 <methodCallTag name="processor" method="addProcessor"> 9 7 <attribute name="name" type="string" /> 10 8 <attribute name="type" type="string" /> 11 </ setterMethod>9 </methodCallTag> 12 10 </tag> 13 <tag name="simpleResolver" type="net.stubbles.websites.processors.stubSimpleProcessorResolver" key Attribute="resolver">11 <tag name="simpleResolver" type="net.stubbles.websites.processors.stubSimpleProcessorResolver" key="resolver"> 14 12 <attribute name="processor" type="string" /> 15 13 </tag>
