mothership-ec / cog
此包已被弃用且不再维护。未建议替代包。
Mothership的PHP5框架,用于构建模块化系统
4.16.0
2016-04-22 14:21 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- ext-gd: *
- ext-intl: *
- ext-json: *
- ext-mysqli: *
- ext-simplexml: *
- dflydev/markdown: ~1.0
- filp/whoops: 1.0.*
- itbz/fpdf: 1.7.*
- itbz/fpdi: 1.4.*
- jeremeamia/superclosure: ~1.0
- knplabs/knp-snappy: 0.1.*
- kriswallsmith/assetic: 1.1.*
- lmammino/jsmin4assetic: 1.0.*
- message/wkhtmltopdf: 1.0.*
- monolog/monolog: 1.7.*
- mtdowling/cron-expression: 1.0.*
- natxet/cssmin: 3.0.*
- pimple/pimple: ~2.0
- swiftmailer/swiftmailer: ~5.2.1 | ~5.3
- symfony/console: 2.7.*
- symfony/event-dispatcher: 2.1.*
- symfony/filesystem: 2.4.*
- symfony/finder: 2.2.*
- symfony/form: 2.3.*
- symfony/http-kernel: 2.3.*
- symfony/options-resolver: 2.6.*
- symfony/process: 2.1.*
- symfony/routing: 2.3.*
- symfony/templating: 2.1.*
- symfony/translation: 2.3.*
- symfony/twig-bridge: 2.3.*
- symfony/twig-bundle: 2.3.*
- symfony/validator: 2.3.*
- symfony/yaml: 2.1.*
- treasure-chest/treasure-chest: 0.1.*
- twig/twig: 1.13.*
- zendframework/zend-debug: ~2.4
- zendframework/zend-escaper: ~2.4
Requires (Dev)
- mikey179/vfsstream: 1.1.*
- mockery/mockery: ~0.9
Suggests
- ext-apc: The preferred caching system in Cog
- ext-mysqlnd: Extension for converting data types that come out of a MySQL database. There may be strange behaviour if this is not installed
- ext-oauth: Extension for managing OAuth requests
- message/cog-raven: A Cog module that logs errors, exceptions and messages to Sentry
- 4.16.0
- 4.15.0
- 4.14.1
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.9.0
- 4.8.0
- 4.7.1
- 4.7.0
- 4.6.0
- 4.5.1
- 4.5.0
- 4.4.3
- 4.4.2
- 4.4.1
- 4.4.0
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.12.2
- 3.12.1
- 3.12.0
- 3.11.0
- 3.10.1
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-titles-deprecation
- dev-feature/better-email-headers
- dev-windows-support
- dev-feature/uninstall-module-migrations
- dev-feature/app-title
- dev-feature/field-unit-tests
- dev-feature/unit-test-fixes
- dev-feature/string-generator-fixes
- dev-feature/remove-zend
- dev-feature/improve-db-debugging
- dev-feature/session-expiry
- dev-feature/convert-csv-to-utf8
- dev-feature/wysiwyg
- dev-feature/count-sql
- dev-string-gen-unittest
- dev-fixture-debug
- dev-feature/pdf-downloads
- dev-feature/default-view-namespace
- dev-compatability/blog-comments
- dev-feature/fixture-manager-abstraction
- dev-feature/symfony2.6-update
- dev-compatibility/product-upload
- dev-feature/migration-run-soft-error
- dev-feature/issue-184-detect-content-type
- dev-feature/permission-fix-command
- dev-feature/ssl-support
- dev-feature/fix-link-field
- dev-feature/zend-escaper-requirement
- dev-feature/deploy-event-listeners
- dev-feature/lazy-loading
- dev-feature/bootstrap-folder-dependency-bug
- dev-compatibility/union-music-store
- dev-feature/sql-pagination-ordering-fix
- dev-compatibility/fields-and-connection
- dev-mob-refactor/addresses
- dev-feature/phpspec
- dev-feature/patch-164
- dev-feature/patch-186
- dev-feature/patch-220
- dev-feature/authorship-magic-properties
- dev-feature/session-conflict-fix
- dev-absolute-ref-long-module-names
- dev-issue-159-move-translations-to-resources
- dev-price_twig_extension
- dev-route_collections_array
- dev-config-fixture-bug
- dev-validation-refactor
- dev-nested-helper-fixes
- dev-date-time-change
This package is not auto-updated.
Last update: 2021-03-22 11:08:25 UTC
README
什么是Cog?
Cog是Mothership的基于Symfony的PHP框架。
Cog定义了哪些服务?
Cog在服务容器中定义了以下服务。除非您想用您自己的类替换该服务的功能,否则请勿在您的应用程序中覆盖这些服务。
class.loader
这是一个基于Symfony的自动加载类,是Composer自动加载类。http.request.master
这是当前主请求的Message\Cog\HTTP\Request
实例。bootstrap.loader
这是一个Message\Cog\Bootstrap\Loader
实例。app.loader
这是一个应用程序加载类的实例,将是安装的子类Message\Cog\Application\Loader
。module.loader
这是一个Message\Cog\Module\Loader
实例。
Cog触发哪些全局事件?
terminate
这是在任何Cog请求的最后发生的事情。请使用此事件来停止调试计时器;垃圾收集;数据记录等。cog.load.success
一旦Cog准备好使用(但在模块加载之前)。此时,Cog的所有事件处理程序和服务都将设置和注册。
运行测试
要执行所有测试,请在站点的根目录中运行phpunit
。
您可以通过运行phpunit --testsuite <componentname>
来为单个组件运行测试
例如 phpunit --testsuite Routing
或 phpunit --testsuite Application