/** * Constructor. * * @param \Windwalker\DI\Container $container * @param \Muse\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 \Muse\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')); }
/** * Constructor. * * @param Container $container * @param IOInterface $io * @param Registry $config */ public function __construct(Container $container, IOInterface $io, Registry $config = null) { parent::__construct($container, $io, $config); // Load config json $this->config->loadFile(__DIR__ . '/config.json'); }