#1286: Move check for default output type to end of config file compilation
--------------------+-------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: normal | Milestone: 1.0.4
Component: config | Version: 1.0.3
Severity: minor | Keywords:
Has_patch: 0 |
--------------------+-------------------------------------------------------
Right now, if you do
{{{
#!xml
<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations
xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"
xmlns="http://agavi.org/agavi/config/parts/output_types/1.0">
<ae:configuration context="web">
<output_types default="html">
<output_type name="html" />
<output_type name="json" />
</output_types>
</ae:configuration>
<ae:configuration context="web" environment="development.*">
<output_types default="html">
<output_type name="json"
exception_template="jsondebug.php" />
</output_types>
</ae:configuration>
</ae:configurations>
}}}
You'll get an error:
Non-existent Output Type "html" specified as default in
app/config/output_types.xml
This sanity check should be performed after all blocks have been processed
and merged, similar to how it's done for {{{databases.xml}}}
--
Ticket URL: <http://trac.agavi.org/ticket/1286>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets