public function build()
    {
        $config = new Config();

        $event = new GetConfigEvent($config);
        $this->eventDispatcher->dispatch(GuiEvents::GET_CONFIG, $event);

        return $config;
    }
public function build()
    {
        $config = new Config();

        $event = new GetConfigEvent($config);
        $this->eventDispatcher->dispatch(GuiEvents::GET_CONFIG, $event);

        return $config;
    }
public function build ( ) { $ config = new Config ( ) ; $ event = new GetConfigEvent ( $ config ) ; $ this -> eventDispatcher -> dispatch ( GuiEvents :: GET_CONFIG , $ event ) ; return $ config ; }
Gather configs and return config array.

@return array
Gather configs and return config array .