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.
Installs: 1 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 10
Forks: 0
Open Issues: 0
Requires
- illuminate/support: 4.2.*
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