Skip to content

Commit

Permalink
Allow calls to PHP functions in configuration file transformations, c…
Browse files Browse the repository at this point in the history
…loses agavi#1456
  • Loading branch information
dzuelke committed Nov 24, 2011
1 parent d656f9b commit 6ecffb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ AGAVI CHANGELOG
1.1.0 beta1 (June ??, 2009)
---------------------------

ADD: Allow calls to PHP functions in configuration file transformations (#1456) (David)
ADD: PSR-0 compatible namespaces autoloader (#1454) (David)
ADD: Allow validators to specify result code for exported data (#1453) (David)
ADD: Allow validators to export to a different source (#1419) (David)
Expand Down
1 change: 1 addition & 0 deletions src/config/AgaviXmlConfigParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public static function transform(AgaviXmlConfigDomDocument $document, $environme
// load the stylesheet document into an XSLTProcessor instance
try {
$proc = new AgaviXsltProcessor();
$proc->registerPHPFunctions();
$proc->importStylesheet($xsl);
} catch(Exception $e) {
throw new AgaviParseException(sprintf('Configuration file "%s" could not be parsed: Could not import XSL stylesheet "%s": %s', $document->documentURI, $xsl->documentURI, $e->getMessage()), 0, $e);
Expand Down

0 comments on commit 6ecffb4

Please sign in to comment.