|
@@ 98-106 (lines=9) @@
|
| 95 |
|
|
| 96 |
|
private function addManagers() |
| 97 |
|
{ |
| 98 |
|
App::singleton('ArtificerPluginManager', function () { |
| 99 |
|
$pluginsPath = config_path() . '/'. $this->name .'/plugins.php'; |
| 100 |
|
|
| 101 |
|
return new PluginManager( |
| 102 |
|
new FileInstaller(new FileWriter(), $pluginsPath), |
| 103 |
|
new Booter(), |
| 104 |
|
new Event(app('events')) |
| 105 |
|
); |
| 106 |
|
}); |
| 107 |
|
|
| 108 |
|
App::singleton('ArtificerWidgetManager', function () { |
| 109 |
|
$widgetsPath = config_path() . '/'. $this->name .'/widgets.php'; |
|
@@ 108-116 (lines=9) @@
|
| 105 |
|
); |
| 106 |
|
}); |
| 107 |
|
|
| 108 |
|
App::singleton('ArtificerWidgetManager', function () { |
| 109 |
|
$widgetsPath = config_path() . '/'. $this->name .'/widgets.php'; |
| 110 |
|
|
| 111 |
|
return new WidgetManager( |
| 112 |
|
new FileInstaller(new FileWriter(), $widgetsPath), |
| 113 |
|
new Booter(), |
| 114 |
|
new Event(app('events')) |
| 115 |
|
); |
| 116 |
|
}); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
/** |