8.4.2: Interface 'Concrete\Core\Routing\RouteListInterface' not found

Permalink
I'm following this doc:
https://documentation.concrete5.org/developers/framework/routing/inc...

1. I've got this in my package controller:
use MyPackage\RouteList;
protected $pkgAutoloaderRegistries = [
        'src/MyPackage' => 'MyPackage'
    ];
public function on_start()
{
    $router = $this->app->make('Concrete\Core\Routing\Router');
    $list = new RouteList();
    $list->loadRoutes($router);
}

2. I've got this in a packages/my_package/src/MyPackage/RouteList.php:
namespace MyPackage;
use Concrete\Core\Routing\RouteListInterface;
use Concrete\Core\Routing\Router;
class RouteList implements RouteListInterface
{
    public function loadRoutes($router)
    {
        // Routes and route groups go here.
    }
}

And I get a "Interface 'Concrete\Core\Routing\RouteListInterface' not found" error. What's wrong here?

Thank you.

linuxoid
 
linuxoid replied on at Permalink Reply
linuxoid
It turns out that only works in v8.5*