dynamix/core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dynamix/core

最新稳定版本:v1.0.0.0004

Composer 安装命令:

composer require dynamix/core

包简介

Core of DynamixCMS

README 文档

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

统计信息

  • 总下载量: 1.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 10
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-09