for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Pluggable themes for Yii2
*
* @link https://github.com/hiqdev/yii2-thememanager
* @package yii2-thememanager
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\thememanager\menus;
use Yii;
* Abstract Menu.
* @author Andrii Vasyliev <[email protected]>
abstract class AbstractMenu implements MenuInterface
{
* {@inheritdoc}
public static function widget($menuConfig = [], $widgetConfig = [])
return static::create($menuConfig)->run($widgetConfig);
}
public static function create($config = [])
$config['class'] = get_called_class();
return Yii::createObject($config);
abstract public function run($config = []);