Windwalker\Web\Application::initialise PHP Method

initialise() protected method

initialise
protected initialise ( ) : void
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();
    }

Usage Example

Example #1
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     $this->set('mode', 'test');
     parent::initialise();
     $this->set('project.path.entries', __DIR__ . '/entries');
 }