Creatinging initial version of weather plugin
This commit is contained in:
28
www/plugins/jasonwilliams/calgaryconditions/Plugin.php
Normal file
28
www/plugins/jasonwilliams/calgaryconditions/Plugin.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php namespace JasonWilliams\CalgaryConditions;
|
||||
|
||||
/**
|
||||
* The plugin.php file (called the plugin initialization script) defines the plugin information class.
|
||||
*/
|
||||
|
||||
use System\Classes\PluginBase;
|
||||
|
||||
class Plugin extends PluginBase
|
||||
{
|
||||
|
||||
public function pluginDetails()
|
||||
{
|
||||
return [
|
||||
'name' => 'Calgary Conditions',
|
||||
'description' => 'Provides local time and weather information for Calgary, AB, Canada',
|
||||
'author' => 'Jason Williams',
|
||||
'icon' => 'oc-icon-cloud'
|
||||
];
|
||||
}
|
||||
|
||||
public function registerComponents()
|
||||
{
|
||||
return [
|
||||
'\JasonWilliams\CalgaryConditions\Components\CurrentInfo' => 'CurrentInfo'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user