Configuration Options

Config options can be set in your config file of choice, the examples below are ini based examples. The ini group represents a config section, and the values represent the config items in that section.


Define your project entry kernel

Instance Of: \Cubex\Kernel\CubexKernel

  default = \YourNamespace\YourProject


Changing the default router

Instance Of: \Cubex\Routing\IRouter

  router = \Cubex\Routing\Router

Enable automatic routing by available methods

This will only run if no defined route can be found

  auto = bool


Setting your standard 404 error

Instance Of: \Symfony\Component\HttpFoundation\Response

  404 = \Cubex\Responses\Error404Response