/** * Peforms graph controller initialization */ public function initialize() { //resolve nodes repository from DI container $this->_nodesRepo = $this->di->get('graphNodesRepository'); //resolve links repository from DI container $this->_linksRepo = $this->di->get('graphLinksRepository'); //initialize base netgraphz2 controller parent::initialize(); }
/** * Initializes controller. */ public function initialize() { //resolve links repository from DI container $this->_linksRepo = $this->di->get('graphLinksRepository'); parent::initialize(); }
/** * Initialize controller */ public function initialize() { $this->_nodesRepo = $this->di->get('graphNodesRepository'); parent::initialize(); }