@mattab opened this Issue on July 21st 2013 Member

As discussed in #3741, Piwik 2 will make use of the namespace feature of PHP 5.3. This implementation of best practises of modern PHP will lead to more readable code and overall better Piwik platform for developers.

@mattab commented on July 23rd 2013 Member

In aca8ec33a85e0a70b818b6227145041717d7a69e: Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.

@mattab commented on July 23rd 2013 Member

In ae4b1f4e38077b174e4df5b7d4513d63fe026a24: Refs #4059 Work in progress: Conversion to use Namespaces

@mattab commented on July 23rd 2013 Member

In 5104d94f3b2250f766b9c520e2da8da9b4cab2e9: Refs #4059 Work in progress: Conversion to use Namespaces of dozen more classes
Removed many Piwik_ functions, in Piwik 2 it is best practise to use the methods calls instead

Todo: finish converting core/ classes + convert plugins/ classes to use \Piwik\Plugin namespace + fix build + Merge master

@mattab commented on July 31st 2013 Member

Remaining Tasks for a beautiful namespaced Piwik:

  • Simplify auto loader (reuse this)
  • Convert plugins/ to use \Piwik\Plugin namespace
  • Search for Piwik_ in source code and fix them all
  • remove unprefixClass
  • Convert tests/ to use \Piwik\Tests
  • ...?
@mattab commented on August 2nd 2013 Member

In a96ec40e983a8b64f4c25def541a519ff3670e6a: Refs #4059 Converting dozens of plugins/* classes to use Namespaces, \Piwik\Plugins*
Added namespaces to functions.php files in the five plugins that had one
Work in progress

@mattab commented on August 11th 2013 Member

see follow up #4074

@mattab commented on October 8th 2013 Member

In b738433faba6e80fb28123038700aaa4fa2ae7ef: Refs #4059 Converting updates files to use namespaces

This Issue was closed on October 16th 2013
Powered by GitHub Issue Mirror