Author: lombardot
Date: 2010-09-14 22:48:07 +0200 (Tue, 14 Sep 2010)
New Revision: 30908

Modified:
   
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPayment/actions/actions.class.php
   
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPaymentDemo/actions/actions.class.php
Log:
[sfAtosPaymentPlugin] lombardot optimisate getOrm with sfConfig::get("sf_orm") 

Modified: 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPayment/actions/actions.class.php
===================================================================
--- 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPayment/actions/actions.class.php
   2010-09-14 16:25:45 UTC (rev 30907)
+++ 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPayment/actions/actions.class.php
   2010-09-14 20:48:07 UTC (rev 30908)
@@ -17,9 +17,7 @@
         * Auto response
         */
        public function executeResponse(sfWebRequest $request){
-               $properties = 
parse_ini_file(sfConfig::get('sf_config_dir').DIRECTORY_SEPARATOR.'properties.ini',
 true);
-
-               if($properties['symfony']['orm']=='Doctrine')
+               if(sfConfig::get("sf_orm")=='doctrine')
                        $payment_transaction=new sfAtosDoctrinePayment();
                else
                        $payment_transaction=new sfAtosPropelPayment();

Modified: 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPaymentDemo/actions/actions.class.php
===================================================================
--- 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPaymentDemo/actions/actions.class.php
       2010-09-14 16:25:45 UTC (rev 30907)
+++ 
plugins/sfAtosPaymentPlugin/sf1.4/modules/sfAtosPaymentDemo/actions/actions.class.php
       2010-09-14 20:48:07 UTC (rev 30908)
@@ -14,8 +14,7 @@
 class sfAtosPaymentDemoActions extends sfActions {
        
        public function executeIndex(sfWebRequest $request){
-               $properties = 
parse_ini_file(sfConfig::get('sf_config_dir').DIRECTORY_SEPARATOR.'properties.ini',
 true);
-               if($properties['symfony']['orm']=='Doctrine'){
+               if(sfConfig::get("sf_orm")=='doctrine'){
                        $payment_transaction=new sfAtosDoctrinePayment();
                }else{
                        $payment_transaction=new sfAtosPropelPayment();
@@ -26,9 +25,7 @@
        }
        
        public function executeConfirm(sfWebRequest $request){
-               $properties = 
parse_ini_file(sfConfig::get('sf_config_dir').DIRECTORY_SEPARATOR.'properties.ini',
 true);
-
-               if($properties['symfony']['orm']=='Doctrine'){
+               if(sfConfig::get("sf_orm")=='doctrine'){
                        
$this->sf_atos_cart=sf_atos_cartTable::retrieveByBankResponse($payment_transaction->getResponse());
                }else{
                        
$this->sf_atos_cart=SfAtosCartPeer::retrieveByBankResponse($payment_transaction->getResponse());
@@ -41,10 +38,7 @@
        
        public function executeCancel(sfWebRequest $request){
                
-               
-               $properties = 
parse_ini_file(sfConfig::get('sf_config_dir').DIRECTORY_SEPARATOR.'properties.ini',
 true);
-               
-               if($properties['symfony']['orm']=='Doctrine'){
+               if(sfConfig::get("sf_orm")=='doctrine'){
                        $payment_transaction=new sfAtosDoctinePayment();
                        
$this->sf_atos_cart=sf_atos_cartTable::retrieveByBankResponse($payment_transaction->getResponse());
                        if($this->sf_atos_cart instanceof sf_atos_cart){

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to