@tsteur opened this Pull Request on June 15th 2020 Member

Refs https://github.com/matomo-org/matomo/issues/12420#issuecomment-644254519

The purpose is to make updates to a future Matomo version smoother where we maybe use Matomo namespace instead of Piwik

Tested it eg in 3.x-dev by adding a file core/Foo.php with content

<?php
namespace Matomo;

class Foo {
    public function get()
    {
        return '42';
    }
}

then in core/dispatch.php tested it using

$x = new \Piwik\Foo();
echo $x->get();

and using

$x = new \Matomo\Foo();
echo $x->get();

In all cases the class was resolved correctly with no issues.

@tsteur commented on June 17th 2020 Member

👍

This Pull Request was closed on June 17th 2020
Powered by GitHub Issue Mirror