/**
  * Constructor.
  *
  * @param   \Windwalker\DI\Container      $container
  * @param   \CodeGenerator\IO\IOInterface $io
  * @param   Registry                      $config
  */
 public function __construct(Container $container, IOInterface $io, Registry $config = null)
 {
     $config['client'] = $config['client'] ?: 'site';
     $this->replace['module.client'] = 'client="' . $config['client'] . '"';
     parent::__construct($container, $io, $config);
     // Set copy dir.
     $config->set('dir.src', $config->get('dir.tmpl'));
 }
 /**
  * Constructor.
  *
  * @param   \Windwalker\DI\Container      $container
  * @param   \CodeGenerator\IO\IOInterface $io
  * @param   Registry                      $config
  */
 public function __construct(Container $container, IOInterface $io, Registry $config = null)
 {
     // Reset element back to plg_group_name
     $config['element'] = 'plg_' . strtolower($config['group']) . '_' . strtolower($config['name']);
     $config['client'] = 'site';
     $this->replace['plugin.group.lower'] = strtolower($config['group']);
     $this->replace['plugin.group.upper'] = strtoupper($config['group']);
     $this->replace['plugin.group.cap'] = ucfirst($config['group']);
     parent::__construct($container, $io, $config);
     // Set copy dir.
     $config->set('dir.src', $config->get('dir.tmpl'));
 }