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:
2. I've got this in a packages/my_package/src/MyPackage/RouteList.php:
And I get a "Interface 'Concrete\Core\Routing\RouteListInterface' not found" error. What's wrong here?
Thank you.
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.