|
@@ 154-162 (lines=9) @@
|
| 151 |
|
|
| 152 |
|
private function addManagers() |
| 153 |
|
{ |
| 154 |
|
App::singleton('ArtificerWidgetManager', function() { |
| 155 |
|
$widgetsConfig = $this->getConfigPath() . 'extensions/widgets.php'; |
| 156 |
|
|
| 157 |
|
return new WidgetManager( |
| 158 |
|
new FileInstaller(new FileWriter(), $widgetsConfig), |
| 159 |
|
new Booter(), |
| 160 |
|
new Event(app('events')) |
| 161 |
|
); |
| 162 |
|
}); |
| 163 |
|
|
| 164 |
|
App::singleton('ArtificerPluginManager', function() { |
| 165 |
|
$pluginsConfig = $this->getConfigPath() . 'extensions/plugins.php'; |
|
@@ 164-172 (lines=9) @@
|
| 161 |
|
); |
| 162 |
|
}); |
| 163 |
|
|
| 164 |
|
App::singleton('ArtificerPluginManager', function() { |
| 165 |
|
$pluginsConfig = $this->getConfigPath() . 'extensions/plugins.php'; |
| 166 |
|
|
| 167 |
|
return new PluginManager( |
| 168 |
|
new FileInstaller(new FileWriter(), $pluginsConfig), |
| 169 |
|
new \Mascame\Artificer\Plugin\Booter(), |
| 170 |
|
new Event(app('events')) |
| 171 |
|
); |
| 172 |
|
}); |
| 173 |
|
|
| 174 |
|
App::singleton('ArtificerAssetManager', function() { |
| 175 |
|
return \Assets::config([ |