/**
  * Prepare hook of this component.
  *
  * Do some customize initialise through extending this method.
  *
  * @return void
  */
 public function prepare()
 {
     if (JDEBUG) {
         Debugger::registerWhoops();
     }
     // Register provider
     $this->container->registerServiceProvider(new QuickcontentProvider());
     // Load language
     $lang = $this->container->get('language');
     LanguageHelper::loadAll($lang->getTag(), $this->option);
     // Load asset
     $asset = $this->container->get('helper.asset');
     $asset->windwalker();
     // Register tasks
     TaskMapper::register($this);
     parent::prepare();
 }
 /**
  * Prepare hook of this component.
  *
  * Do some customize initialise through extending this method.
  *
  * @return void
  */
 public function prepare()
 {
     if (JDEBUG) {
         Debugger::registerWhoops();
     }
     // Register provider
     $this->container->registerServiceProvider(new RemoteimageProvider());
     // Load language
     $lang = $this->container->get('language');
     LanguageHelper::loadAll($lang->getTag(), $this->option);
     // Load asset
     $asset = $this->container->get('helper.asset');
     $asset->windwalker();
     // Register tasks
     TaskMapper::register($this);
     include_once JPATH_ADMINISTRATOR . '/includes/toolbar.php';
     parent::prepare();
 }
Exemplo n.º 3
0
 /**
  * Prepare hook of this component.
  *
  * Do some customize initialise through extending this method.
  *
  * @return void
  */
 public function prepare()
 {
     if (JDEBUG) {
         Debugger::registerWhoops();
     }
     // Register provider
     $this->container->registerServiceProvider(new UserxtdProvider());
     // Load language
     $lang = $this->container->get('language');
     LanguageHelper::loadAll($lang->getTag(), $this->option);
     // Load asset
     $asset = $this->container->get('helper.asset');
     $asset->windwalker();
     // Register tasks
     TaskMapper::register($this);
     // Load Users language
     \Windwalker\Helper\LanguageHelper::loadLanguage('com_users', 'site');
     \Windwalker\Helper\LanguageHelper::loadLanguage('com_users', 'admin');
     parent::prepare();
 }