This version is outdated. You should upgrade your project to Mako 9.1 or Mako 10.0!
Getting started

Upgrading



This guide takes you through the steps needed to migrate from Mako 5.3.x to 5.4.x.


Application

The MAKO_START constant has been removed. Use the Application::startTime() method instead.


Framework

Request

All methods that were deprecated in 5.3 have been removed. Check out the request docs for information on how to upgrade your application.

Response

Response filters have been removed. Middleware should be used to achieve the same results.

Commands

Parameters passed to the execute method of reactor commands are now converted to camel case.

// Before: php app/reactor command --cache-path=/foo/bar

public function execute($cache_path)
{
	// ....
}

// Now: php app/reactor command --cache-path=/foo/bar

public function execute($cachePath)
{
	// ....
}