Cog is Mothership's Symfony-based PHP framework.
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 theMessage\Cog\HTTP\Request
instance for the current master request.bootstrap.loader
This is an instance ofMessage\Cog\Bootstrap\Loader
.app.loader
This is the instance of the application loader class, which will be the installation's sublass ofMessage\Cog\Application\Loader
.module.loader
This is an instance ofMessage\Cog\Module\Loader
.
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.
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