prepareSystemPath() public static method

Write your custom path to $config['path.xxx'].
public static prepareSystemPath ( Windwalker\Registry\Registry $config ) : void
$config Windwalker\Registry\Registry The config registry object.
return void
Ejemplo n.º 1
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     Windwalker::prepareSystemPath($this->config);
     parent::initialise();
     // Start session
     Ioc::getSession()->start();
 }
Ejemplo n.º 2
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     Windwalker::prepareSystemPath($this->config);
     parent::initialise();
     if (!$this->config->get('system.debug')) {
         SimpleErrorHandler::registerErrorHandler();
     }
     // Start session
     Ioc::getSession();
 }
Ejemplo n.º 3
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     // Prepare system paths, we'll write all path constants into config.
     Windwalker::prepareSystemPath($this->config);
     parent::initialise();
     // Prepare a system listener then you can add custom logic in it.
     $this->getDispatcher()->addListener(new SystemListener());
     // Start session
     $this->container->get('system.session')->start();
 }
Ejemplo n.º 4
0
    /**
     * initialise
     *
     * @return  void
     */
    protected function initialise()
    {
        Windwalker::prepareSystemPath($this->config);
        parent::initialise();
        $this->setHelp(<<<HELP
Welcome to Vaseman Console.
HELP
);
        $this->setDescription('Vaseman console system.');
        $this->container->set('system.router', new RestfulRouter());
    }
Ejemplo n.º 5
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     Windwalker::prepareSystemPath($this->config);
     parent::initialise();
 }
Ejemplo n.º 6
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     // Prepare system paths, we'll write all path constants into config.
     Windwalker::prepareSystemPath($this->config);
     parent::initialise();
 }