#1406: Allow glob syntax for XIncludes in configuration files
-------------------------+--------------------------------------------------
 Reporter:  david        |       Owner:  david   
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  1.1     
Component:  config       |     Version:          
 Severity:  normal       |    Keywords:          
Has_patch:  0            |  
-------------------------+--------------------------------------------------
Changes (by david):

  * status:  new => assigned


Old description:

> {{{<xi:include href="%core.module_dir%/*/config/routing.xml" />}}}
>
> The {{{<xi:include />}}} element then gets duplicated for every path
> found by {{{glob()}}}.
>
> We should use flags {{{GLOB_BRACES}}}}, so the following is possible:
>
> {{{<xi:include href="%core.module_dir%/{Foo,Bar,Baz}/config/routing.xml"
> />}}}
>
> And we need to remove duplicates so people can set basic priorities:
>
> {{{<xi:include
> href="%core.module_dir%/{WinningModule,*}/config/routing.xml" />}}}

New description:

 {{{<xi:include href="%core.module_dir%/*/config/routing.xml" />}}}

 The {{{<xi:include />}}} element then gets duplicated for every path found
 by {{{glob()}}}.

 We should use flags {{{GLOB_BRACE}}}}, so the following is possible:

 {{{<xi:include href="%core.module_dir%/{Foo,Bar,Baz}/config/routing.xml"
 />}}}

 And we need to remove duplicates so people can set basic priorities:

 {{{<xi:include
 href="%core.module_dir%/{WinningModule,*}/config/routing.xml" />}}}

--

-- 
Ticket URL: <http://trac.agavi.org/ticket/1406#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to