public function getWPLayer() { if ($this->_WPLayer == null) { $this->getClassLoader()->loadClass('ffWPLayer'); $this->getClassLoader()->loadClass('ffHookManager'); $this->getClassLoader()->loadClass('ffWPMLBridge'); $this->getClassLoader()->loadClass('ffAssetsSourceHolder'); $this->_WPLayer = new ffWPLayer(FF_FRAMEWORK_URL); $hookManager = new ffHookManager($this->_WPLayer); $wpmlBridge = new ffWPMLBridge($this->_WPLayer); $assetsSourceHolder = new ffAssetsSourceHolder($this->_WPLayer); $this->_WPLayer->setWPMLBridge($wpmlBridge); $this->_WPLayer->setHookManager($hookManager); $this->_WPLayer->setAssetsSourceHolder($assetsSourceHolder); } return $this->_WPLayer; }