Author: Jonathan.Wage
Date: 2010-01-30 07:16:39 +0100 (Sat, 30 Jan 2010)
New Revision: 27319
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/sfSympalContentActionLoader.class.php
Log:
[1.4][sfSympalPlugin][1.0] Refactoring dispatcher calls
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/sfSympalContentActionLoader.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/sfSympalContentActionLoader.class.php
2010-01-30 06:05:25 UTC (rev 27318)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/sfSympalContentActionLoader.class.php
2010-01-30 06:16:39 UTC (rev 27319)
@@ -9,7 +9,8 @@
$_response,
$_request,
$_content,
- $_menuItem;
+ $_menuItem,
+ $_dispatcher;
public function __construct(sfActions $actions)
{
@@ -18,6 +19,7 @@
$this->_user = $actions->getUser();
$this->_response = $actions->getResponse();
$this->_request = $actions->getRequest();
+ $this->_dispatcher = $this->_dispatcher;
}
public function getContent()
@@ -71,7 +73,7 @@
}
}
-
$this->_sympalContext->getSymfonyContext()->getConfiguration()->getEventDispatcher()->notify(new
sfEvent($this, 'sympal.load_content', array('content' => $content)));
+ $this->_dispatcher->notify(new sfEvent($this, 'sympal.load_content',
array('content' => $content)));
return $content;
}
@@ -166,7 +168,7 @@
private function _createSite()
{
chdir(sfConfig::get('sf_root_dir'));
- $task = new
sfSympalCreateSiteTask($this->_actions->getContext()->getEventDispatcher(), new
sfFormatter());
+ $task = new sfSympalCreateSiteTask($this->_dispatcher, new sfFormatter());
$task->run(array($this->_sympalContext->getSiteSlug()),
array('no-confirmation' => true));
}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.