: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\SmartSlider3\Widget;
use Nextend\Framework\Pattern\PluggableTrait;
use Nextend\Framework\Pattern\SingletonTrait;
use Nextend\SmartSlider3\Widget\Group\AbstractWidgetGroup;
use Nextend\SmartSlider3\Widget\Group\Arrow;
use Nextend\SmartSlider3\Widget\Group\Autoplay;
use Nextend\SmartSlider3\Widget\Group\Bar;
use Nextend\SmartSlider3\Widget\Group\Bullet;
use Nextend\SmartSlider3\Widget\Group\Shadow;
use Nextend\SmartSlider3\Widget\Group\Thumbnail;
class WidgetGroupFactory {
use SingletonTrait, PluggableTrait;
/** @var AbstractWidgetGroup[] */
private static $groups = array();
protected function init() {
$this->makePluggable('SliderWidgetGroup');
* @param AbstractWidgetGroup $group
public static function addGroup($group) {
self::$groups[$group->getName()] = $group;
* @return AbstractWidgetGroup[]
public static function getGroups() {
* @return AbstractWidgetGroup
public static function getGroup($name) {
return self::$groups[$name];
WidgetGroupFactory::getInstance();