Changeset 2528

Show
Ignore:
Timestamp:
06/23/08 21:58:11 (7 months ago)
Author:
david
Message:

Arguments passed to AgaviController::dispatch() should have precedence over routing results, closes #777

Location:
branches/0.11
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/CHANGELOG

    r2523 r2528  
    1212ADD: Allow nested routing structures with concatenated name or action attributes in ancestors other than immediate parents (Dominik) (#764) 
    1313 
     14CHG: Arguments passed to AgaviController::dispatch() should have precedence over routing results (#777) (David) 
    1415CHG: Introduce generic AgaviStreamLoggerAppender (#773) (David) 
    1516CHG: Make AgaviLoggerAppender an AgaviParameterHolder (#774) (David) 
  • branches/0.11/src/controller/AgaviController.class.php

    r2526 r2528  
    163163    try { 
    164164       
     165      // match routes and assign returned initial execution container 
     166      $container = $this->context->getRouting()->execute(); 
     167       
     168      // merge in any arguments given. they need to have precedence over what the routing found 
    165169      $requestData = $this->context->getRequest()->getRequestData(); 
    166170      if($arguments !== null) { 
    167171        $requestData->merge($arguments); 
    168172      } 
    169        
    170       // match routes and assign returned initial execution container 
    171       $container = $this->context->getRouting()->execute(); 
    172173       
    173174      $moduleName = $container->getModuleName();