widgets = $widgets; $this->dashboards = $dashboards; $this->configuration = $configuration; } public function run() { $this->widgets->truncate(); $dashboard = $this->dashboards->findBySlug('welcome'); $widget = $this->widgets ->create( [ 'en' => [ 'title' => 'Recent News', 'description' => 'Recent news' ], 'extension' => 'anomaly.extension.xml_feed_widget', 'dashboard' => $dashboard, ] ); $this->configuration->purge('anomaly.extension.xml_feed_widget'); $this->configuration->create( [ 'scope' => $widget->getId(), 'key' => 'anomaly.extension.xml_feed_widget::url', 'value' => 'https://openclassify.com/{locale}/posts/rss.xml', ] ); $this->configuration->create( [ 'scope' => $widget->getId(), 'key' => 'anomaly.extension.xml_feed_widget::multilingual_seeder', 'value' => true, ] ); } }