public function loadModules()
	{
		$core_modules = [
			'CoandaCMS\Coanda\Pages\PagesModuleProvider',
			'CoandaCMS\Coanda\Media\MediaModuleProvider',
			'CoandaCMS\Coanda\Users\UsersModuleProvider',
			'CoandaCMS\Coanda\Layout\LayoutModuleProvider',
			'CoandaCMS\Coanda\Urls\UrlModuleProvider',
			'CoandaCMS\Coanda\History\HistoryModuleProvider'
		];

		$enabled_modules = $this->config->get('coanda::coanda.enabled_modules');

		$modules = array_merge($core_modules, $enabled_modules);

		foreach ($modules as $module)
		{
			if (class_exists($module))
			{
				$enabled_module = new $module($this);
				$enabled_module->boot($this);

				$this->modules[$enabled_module->name] = $enabled_module;
			}
		}
	}
public function loadModules()
	{
		$core_modules = [
			'CoandaCMS\Coanda\Pages\PagesModuleProvider',
			'CoandaCMS\Coanda\Media\MediaModuleProvider',
			'CoandaCMS\Coanda\Users\UsersModuleProvider',
			'CoandaCMS\Coanda\Layout\LayoutModuleProvider',
			'CoandaCMS\Coanda\Urls\UrlModuleProvider',
			'CoandaCMS\Coanda\History\HistoryModuleProvider'
		];

		$enabled_modules = $this->config->get('coanda::coanda.enabled_modules');

		$modules = array_merge($core_modules, $enabled_modules);

		foreach ($modules as $module)
		{
			if (class_exists($module))
			{
				$enabled_module = new $module($this);
				$enabled_module->boot($this);

				$this->modules[$enabled_module->name] = $enabled_module;
			}
		}
	}
public function loadModules ( ) { $ core_modules = [ 'CoandaCMS\Coanda\Pages\PagesModuleProvider' , 'CoandaCMS\Coanda\Media\MediaModuleProvider' , 'CoandaCMS\Coanda\Users\UsersModuleProvider' , 'CoandaCMS\Coanda\Layout\LayoutModuleProvider' , 'CoandaCMS\Coanda\Urls\UrlModuleProvider' , 'CoandaCMS\Coanda\History\HistoryModuleProvider' ] ; $ enabled_modules = $ this -> config -> get ( 'coanda::coanda.enabled_modules' ) ; $ modules = array_merge ( $ core_modules , $ enabled_modules ) ; foreach ( $ modules as $ module ) { if ( class_exists ( $ module ) ) { $ enabled_module = new $ module ( $ this ) ; $ enabled_module -> boot ( $ this ) ; $ this -> modules [ $ enabled_module -> name ] = $ enabled_module ; } } }
Get all the enabled modules from the config and boots them up. Also adds to modules array for future use.
Get all the enabled modules from the config and boots them up . Also adds to modules array for future use .