Commit eeef80e6 by Seldaek

* fixes Agavi adapter's plugin_dir parameter handling

git-svn-id: svn://dwoo.org/dwoo/trunk@173 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent bd14bd1c
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
* {@link http://www.gnu.org/copyleft/lesser.html} * {@link http://www.gnu.org/copyleft/lesser.html}
* *
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>
* @author David Zülke <dz@bitxtender.com>
* @copyright Copyright (c) 2008, Jordi Boggiano * @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @link http://dwoo.org/ * @link http://dwoo.org/
...@@ -77,6 +76,8 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer ...@@ -77,6 +76,8 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer
*/ */
protected $defaultExtension = '.html'; protected $defaultExtension = '.html';
protected $plugin_dir = null;
/** /**
* Pre-serialization callback. * Pre-serialization callback.
* *
...@@ -90,6 +91,19 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer ...@@ -90,6 +91,19 @@ class DwooRenderer extends AgaviRenderer implements AgaviIReusableRenderer
} }
/** /**
* Initialize this Renderer.
*
* @param AgaviContext The current application context.
* @param array An associative array of initialization parameters.
*/
public function initialize(AgaviContext $context, array $parameters = array())
{
parent::initialize($context, $parameters);
$this->plugin_dir = $this->getParameter('plugin_dir', $this->plugin_dir);
}
/**
* Grab a cleaned up dwoo instance. * Grab a cleaned up dwoo instance.
* *
* @return Dwoo A Dwoo instance. * @return Dwoo A Dwoo instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment