定制 mothership-ec/cog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mothership-ec/cog

最新稳定版本:4.16.0

Composer 安装命令:

composer require mothership-ec/cog

包简介

Mothership's PHP5 framework for building modular systems

README 文档

README

What is Cog?

Cog is Mothership's Symfony-based PHP framework.

What services does Cog define?

Cog defines the following services on the service container. Don't overwrite any of these in your application unless you want to replace the functionality of this service with your own class.

  • class.loader This is the Composer autoloader class which is based on Symfony's autoloader.
  • http.request.master This is the Message\Cog\HTTP\Request instance for the current master request.
  • bootstrap.loader This is an instance of Message\Cog\Bootstrap\Loader.
  • app.loader This is the instance of the application loader class, which will be the installation's sublass of Message\Cog\Application\Loader.
  • module.loader This is an instance of Message\Cog\Module\Loader.

What global events does Cog fire?

  • terminate This is the very last thing that happens for any Cog request. Use this event for stopping debug timers; garbage collection; data logging; etc.
  • cog.load.success Fired once Cog is ready to use (but before modules have been loaded). All of Cog's event handlers and services will be setup and registered by this point.

Running tests

To execute all tests run phpunit in the root of the site.

You can run tests for individual components by running phpunit --testsuite <componentname>

e.g phpunit --testsuite Routing or phpunit --testsuite Application

Build Status

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-02-24