The documentation you are viewing is for an older version of this component.
Switch to the latest (v2) version.
Register routes in your application using your preferred method:
config/routes.phpRoutesDelegatorBoth methods will provide access to the application's container via the $container variable.
There are two types of routes that you can create: