dynamix/core

Core of DynamixCMS

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

v1.0.0.0004 2016-04-24 16:01 UTC

This package is not auto-updated.

Last update: 2021-01-22 22:09:09 UTC


README

Presentation

Dynamix core contain base configuration of Dynamix. Soon controller and librairies.

Features

Core has this configuration on a namespace for a better operability:

One page option, is a boolean overridable in any package.

Config::get('core::display.onepage');

Route root configuration is the controller@method ('URLManagerController@getHome') for / or /{locale}/ route.

Config::get('core::route.root');

How to override this

In your package provider add this in the boot method.

/*
|
| 'core' is the namespace
| '(display|route)' is config file name, your must choose between both
|
*/
// Get config loader
$loader = $this->app['config']->getLoader();
// Get environment name
$env = $this->app['config']->getEnvironment();
// Add package namespace with path set base on your requirement
$loader->addNamespace('core',__DIR__.'/../../config');

// Load package override config file
$configs = $loader->load($env,'(display|route)','core');
// Override value
$this->app['config']->set('core::(display|route)',$configs);

LICENCE : MIT