Permalink
Browse files

Fixes #5149 - Pulls widgets library into Elgg_WidgetsService

  • Loading branch information...
1 parent 31fa675 commit 76f65c0d46dd063ac4d406ba374bf3c4e0c989ea @Srokap Srokap committed Feb 27, 2013
@@ -115,18 +115,6 @@
$CONFIG->pagehandler;
/**
- * An object holding valid widgets and their configurations.
- *
- * This object stores the valid context for widgets, and the handlers
- * registered, as well as a description of the widget.
- *
- * Widgets are added with {@link add_widget_type()}.
- *
- * @global stdClass $CONFIG->widgets
- */
-$CONFIG->widgets;
-
-/**
* The full path where Elgg is installed.
*
* @global string $CONFIG->path;
@@ -13,6 +13,7 @@
* @property-read Elgg_ActionsService $actions
* @property-read ElggPluginHookService $hooks
* @property-read ElggEventService $events
+ * @property-read Elgg_WidgetsService $widgets
* @property-read ElggViewService $views
* @property-read ElggAutoP $autoP
* @property-read ElggDatabase $db
@@ -37,9 +38,10 @@ public function __get($name) {
public function __construct(ElggAutoloadManager $autoload_manager) {
$this->setValue('autoloadManager', $autoload_manager);
$this->setValue('actions', new Elgg_ActionsService());
- $this->setValue('hooks', new ElggPluginHookService());
+ $this->setValue('hooks', new ElggPluginHookService());
$this->setValue('events', new ElggEventService());
-
+ $this->setValue('widgets', new Elgg_WidgetsService());
+
$this->setFactory('views', array($this, 'getViews'));
$this->setFactory('autoP', array($this, 'getAutoP'));
$this->setFactory('logger', array($this, 'getLogger'));
Oops, something went wrong.

0 comments on commit 76f65c0

Please sign in to comment.