#1406: Allow glob syntax for XIncludes in configuration files
-------------------------+--------------------------------------------------
 Reporter:  david        |        Owner:  david 
     Type:  enhancement  |       Status:  closed
 Priority:  normal       |    Milestone:  1.1   
Component:  config       |      Version:        
 Severity:  normal       |   Resolution:  fixed 
 Keywords:               |    Has_patch:  0     
-------------------------+--------------------------------------------------
Description changed by david:

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_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" />}}}

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 the {{{GLOB_BRACE}}} flag 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:3>
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