Rename Interfaces to Contracts to better match Laravel conventions

This commit is contained in:
Nabeel Shahzad
2019-07-15 15:44:31 -04:00
parent 31f16d693b
commit a720f12e0b
223 changed files with 241 additions and 241 deletions

26
app/Contracts/Widget.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Contracts;
use Arrilot\Widgets\AbstractWidget;
/**
* Class Widget
*/
abstract class Widget extends AbstractWidget
{
public $cacheTime = 0;
/**
* Render the template
*
* @param string $template
* @param array $vars
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function view(string $template, array $vars = [])
{
return view($template, $vars);
}
}