Integrate PhraseaCore in Events Manager

This commit is contained in:
Romain Neutron
2011-12-27 14:04:47 +01:00
parent c7e9161c7f
commit f6eef1af39
7 changed files with 58 additions and 28 deletions

View File

@@ -15,6 +15,11 @@ abstract class eventsmanager_eventAbstract
* @var registryInterface
*/
protected $registry;
/**
*
* @var \Alchemy\Phrasea\Core
*/
protected $core;
/**
*
* @var eventsmanager
@@ -22,10 +27,11 @@ abstract class eventsmanager_eventAbstract
protected $broker;
public function __construct(appbox &$appbox, registryInterface $registry, eventsmanager_broker &$broker)
public function __construct(appbox &$appbox, \Alchemy\Phrasea\Core $core, eventsmanager_broker &$broker)
{
$this->appbox = $appbox;
$this->registry = $registry;
$this->registry = $core->getRegistry();
$this->core = $core;
$this->broker = $broker;
return $this;